quickshell: raise bar to overlay layer while OSD is shown

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
rope 2026-08-15 11:38:18 +01:00
parent 960ee94e81
commit 3030d20034

View file

@ -1790,6 +1790,10 @@ in
required property var shellRoot required property var shellRoot
screen: modelData screen: modelData
WlrLayershell.namespace: "quickshell-bar" WlrLayershell.namespace: "quickshell-bar"
// Hyprland doesn't render the top layer under a fullscreen
// window, so the OSD would be invisible exactly when a video
// is playing. Ride the overlay layer while it's on screen.
WlrLayershell.layer: osdItem.shown ? WlrLayer.Overlay : WlrLayer.Top
// OnDemand + HyprlandFocusGrab is the working combination // OnDemand + HyprlandFocusGrab is the working combination
// (caelestia's): the grab redirects focus to this window and // (caelestia's): the grab redirects focus to this window and
// OnDemand lets the layer surface accept it. Exclusive fights // OnDemand lets the layer surface accept it. Exclusive fights