Revert "Fix autohide" (#2137)

This commit is contained in:
Leonhard 2024-12-03 18:49:26 +01:00 committed by GitHub
parent 11e080b188
commit 37e8c4d66b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 ()) {