Skip to content

Commit 22a7a05

Browse files
leolost2605lenemter
authored andcommitted
HideTracker: Assume hovered when revealing via barrier
In the case that the user triggered the barrier at a point where the panel will actually reveal this is true anyways. And in the case that the user triggered the barrier at a point where the panel won't reveal because it's not wide enough it will make sure that we recheck and unreveal it when the pointer is invalidated.
1 parent 5abd99d commit 22a7a05

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ShellClients/HideTracker.vala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,10 @@ public class Gala.HideTracker : Object {
222222
behavior_settings.get_boolean ("enable-hotcorners-in-fullscreen")
223223
) {
224224
trigger_show ();
225+
// This handles the case that the user triggered the barrier but never hovered
226+
// the panel e.g. when triggering the barrier at a point where the dock doesnt
227+
// reach. In that case once the pointer is moved it'll recheck the hovered state.
228+
hovered = true;
225229
}
226230
}
227231
}

0 commit comments

Comments
 (0)