mirror of
https://github.com/elementary/gala.git
synced 2024-12-19 07:11:56 +03:00
Revert "Fix autohide" (#2137)
This commit is contained in:
parent
11e080b188
commit
37e8c4d66b
@ -213,13 +213,10 @@ public class Gala.HideTracker : Object {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void toggle_display (bool should_hide) {
|
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
|
#if HAS_MUTTER45
|
||||||
hovered = panel.window.has_pointer () && window_actor.visible;
|
hovered = panel.window.has_pointer ();
|
||||||
#else
|
#else
|
||||||
hovered = window_has_pointer () && window_actor.visible;
|
hovered = window_has_pointer ();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (should_hide && !hovered && !panel.window.has_focus ()) {
|
if (should_hide && !hovered && !panel.window.has_focus ()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user