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.
This commit is contained in:
Rafał Dzięgiel
2021-02-24 12:34:57 +01:00
parent 186c63bf04
commit 632fcd34cc
2 changed files with 4 additions and 1 deletions

View File

@@ -216,6 +216,7 @@ class ClapperRevealerBottom extends CustomRevealer
margin_start: 8, margin_start: 8,
margin_end: 8, margin_end: 8,
margin_bottom: 8, margin_bottom: 8,
visible: false,
}); });
this.revealerBox.add_css_class('osd'); this.revealerBox.add_css_class('osd');
this.revealerBox.add_css_class('roundedcorners'); this.revealerBox.add_css_class('roundedcorners');

View File

@@ -153,9 +153,11 @@ class ClapperWidget extends Gtk.Grid
if(!isFullscreen) if(!isFullscreen)
this._clearTimeout('updateTime'); this._clearTimeout('updateTime');
this.revealerTop.setFullscreenMode(isFullscreen, this.isMobileMonitor);
this.revealerBottom.revealerBox.visible = isFullscreen;
this._changeControlsPlacement(isFullscreen); this._changeControlsPlacement(isFullscreen);
this.controls.setFullscreenMode(isFullscreen); this.controls.setFullscreenMode(isFullscreen);
this.revealerTop.setFullscreenMode(isFullscreen, this.isMobileMonitor);
if(this.revealerTop.child_revealed) if(this.revealerTop.child_revealed)
this._checkSetUpdateTimeInterval(); this._checkSetUpdateTimeInterval();