Watch
1
0
Fork
You've already forked souveraine
0

dock: hide over fullscreen apps (app mode owns the display)

This commit is contained in:
Fimeg 2026-07-12 10:33:36 -04:00
commit b8369235b4

View file

@ -50,6 +50,13 @@ Scope { // Scope
property bool previewShowing: false
function computeDockState() {
// App mode: a fullscreen/maximized active window owns the display.
// Suppress Peek entirely (the pulse and the empty-desktop reveal both
// yield to it) so the dock doesn't float over a fullscreen app. The
// swipe-up pulse still works to bring the dock on top for a moment.
const activeFs = ToplevelManager.activeToplevel?.wayland?.fullscreen ?? false;
if (activeFs && !GlobalStates.dockRevealPulse)
return Dock.DockState.Hidden;
if (root.effectivePinned)
return Dock.DockState.Pinned;
if (GlobalStates.dockRevealPulse || root.previewShowing)