Skip to content

Commit 0662357

Browse files
lenemterdanirabbitleolost2605
authored
Fix autohide (#2086)
Co-authored-by: Danielle Foré <[email protected]> Co-authored-by: Leonhard <[email protected]>
1 parent 35a6311 commit 0662357

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

data/gala.metainfo.xml.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
<issue url="https://github.com/elementary/gala/issues/1898">wayland: opening windows when overview is opened breaks a lot</issue>
3939
<issue url="https://github.com/elementary/gala/issues/2053">Window renders black</issue>
4040
<issue url="https://github.com/elementary/gala/issues/2067">Terminal and System Settings have generic icon in multitasking view on Wayland</issue>
41+
<issue url="https://github.com/elementary/gala/issues/2083">Autohide is too sensitive</issue>
4142
<issue url="https://github.com/elementary/dock/issues/78">Touch support - getting the dock to display when hidden</issue>
4243
</issues>
4344
</release>

src/ShellClients/HideTracker.vala

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,10 +186,13 @@ public class Gala.HideTracker : Object {
186186
}
187187

188188
private void toggle_display (bool should_hide) {
189+
unowned var window_actor = (Meta.WindowActor) panel.window.get_compositor_private ();
190+
191+
// Window actor receives pointer events while hidden on X11: https://github.com/elementary/gala/issues/2083
189192
#if HAS_MUTTER45
190-
hovered = panel.window.has_pointer ();
193+
hovered = panel.window.has_pointer () && window_actor.visible;
191194
#else
192-
hovered = window_has_pointer ();
195+
hovered = window_has_pointer () && window_actor.visible;
193196
#endif
194197

195198
if (should_hide && !hovered && !panel.window.has_focus ()) {

0 commit comments

Comments
 (0)