mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
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:
@@ -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');
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user