Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions ui/LauncherWindow.qml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,18 @@ PanelWindow {
}
return window.pinnedScreen || (screens.length ? screens[0] : null)
}
// A monitor hotplug or layout change can destroy the output the kept-mapped
// surface lives on, while `mapped` stays true: the next show then never
// remaps and the launcher stays invisible. Drop the surface so the next
// show maps a fresh one on the focused screen.
Connections {
target: Quickshell
function onScreensChanged() {
if (window.shown) return
window.mapped = false
window.pinnedScreen = null
}
}
mask: window.shown ? null : noInput
Region { id: noInput }
anchors { top: true; bottom: true; left: true; right: true }
Expand Down