quickshell: trace compositor events while a panel is open

The Battle.net window rule didn't fix the launcher dying on open, so log
Hyprland's own event stream between `launcher toggle -> open` and
`focusgrab cleared` to see what actually takes focus. Gated on a panel
being open. Diagnostic — remove once the cause is known.
This commit is contained in:
rope 2026-08-01 20:40:39 +01:00
parent 1e30a9017b
commit b57c06da5e

View file

@ -2956,6 +2956,21 @@ in
} }
} }
// Diagnostic for the "launcher opens and dies in the same frame
// while Battle.net runs" bug. Gated on a panel actually being
// open, so this is a handful of lines around each Super+R rather
// than a firehose the whole point is to see which compositor
// event lands between `launcher toggle -> open` and `focusgrab
// cleared`. Read with `journalctl --user -u quickshell -f -o
// short-precise`; second resolution is too coarse here.
Connections {
target: Hyprland
function onRawEvent(event) {
if (launcherPanel.open || bar.activeDropdown !== null)
console.log("hypr event: " + event.name + " | " + event.data);
}
}
property var activeDropdown: null property var activeDropdown: null
// Set by the screenshot keybind (via IPC) to hold menus open // Set by the screenshot keybind (via IPC) to hold menus open