From 632fcd34cccf1bf110c43d60ed10578b64cc7560 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Wed, 24 Feb 2021 12:34:57 +0100 Subject: [PATCH] Fix overlay buttons not unrevealed when leaving window from bottom side Bottom revealer motion controller was causing timeout to be cleared. Prevent that by making it child invisible when windowed, which will remove its allocated height and motion events will not be emitted. --- src/revealers.js | 1 + src/widget.js | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/revealers.js b/src/revealers.js index d58c7641..0a6630d6 100644 --- a/src/revealers.js +++ b/src/revealers.js @@ -216,6 +216,7 @@ class ClapperRevealerBottom extends CustomRevealer margin_start: 8, margin_end: 8, margin_bottom: 8, + visible: false, }); this.revealerBox.add_css_class('osd'); this.revealerBox.add_css_class('roundedcorners'); diff --git a/src/widget.js b/src/widget.js index c7223189..773cfdd1 100644 --- a/src/widget.js +++ b/src/widget.js @@ -153,9 +153,11 @@ class ClapperWidget extends Gtk.Grid if(!isFullscreen) this._clearTimeout('updateTime'); + this.revealerTop.setFullscreenMode(isFullscreen, this.isMobileMonitor); + this.revealerBottom.revealerBox.visible = isFullscreen; + this._changeControlsPlacement(isFullscreen); this.controls.setFullscreenMode(isFullscreen); - this.revealerTop.setFullscreenMode(isFullscreen, this.isMobileMonitor); if(this.revealerTop.child_revealed) this._checkSetUpdateTimeInterval();