dock: hide over fullscreen apps (app mode owns the display)
This commit is contained in:
parent
2955cd4fbe
commit
b8369235b4
1 changed files with 7 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue