From 8407a325af31e8272e82f7b8d7d7a75957afbead Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Mon, 22 Feb 2021 11:29:26 +0100 Subject: [PATCH] Increase delay of hiding controls when fullscreen --- src/widget.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/widget.js b/src/widget.js index 46cd589f..950d9f81 100644 --- a/src/widget.js +++ b/src/widget.js @@ -610,7 +610,13 @@ class ClapperWidget extends Gtk.Grid _setHideControlsTimeout() { this._clearTimeout('hideControls'); - this._hideControlsTimeout = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 2500, () => { + + let time = 2500; + + if(this.isFullscreenMode && !this.isMobileMonitor) + time += 1500; + + this._hideControlsTimeout = GLib.timeout_add(GLib.PRIORITY_DEFAULT, time, () => { this._hideControlsTimeout = null; if(this.isCursorInPlayer) {