Skip to content

Commit

Permalink
Revert "Fix autohide (#2086)"
Browse files Browse the repository at this point in the history
This reverts commit 0662357.
  • Loading branch information
leolost2605 authored Dec 3, 2024
1 parent 11e080b commit ab87e06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
1 change: 0 additions & 1 deletion data/gala.metainfo.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
<issue url="https://github.com/elementary/gala/issues/1898">wayland: opening windows when overview is opened breaks a lot</issue>
<issue url="https://github.com/elementary/gala/issues/2053">Window renders black</issue>
<issue url="https://github.com/elementary/gala/issues/2067">Terminal and System Settings have generic icon in multitasking view on Wayland</issue>
<issue url="https://github.com/elementary/gala/issues/2083">Autohide is too sensitive</issue>
<issue url="https://github.com/elementary/dock/issues/78">Touch support - getting the dock to display when hidden</issue>
</issues>
</release>
Expand Down
7 changes: 2 additions & 5 deletions src/ShellClients/HideTracker.vala
Original file line number Diff line number Diff line change
Expand Up @@ -213,13 +213,10 @@ public class Gala.HideTracker : Object {
}

private void toggle_display (bool should_hide) {
unowned var window_actor = (Meta.WindowActor) panel.window.get_compositor_private ();

// Window actor receives pointer events while hidden on X11: https://github.com/elementary/gala/issues/2083
#if HAS_MUTTER45
hovered = panel.window.has_pointer () && window_actor.visible;
hovered = panel.window.has_pointer ();
#else
hovered = window_has_pointer () && window_actor.visible;
hovered = window_has_pointer ();
#endif

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

0 comments on commit ab87e06

Please sign in to comment.