From b57c06da5e68862fb725c775f1afe475b6fcc6b4 Mon Sep 17 00:00:00 2001 From: rope Date: Sat, 1 Aug 2026 20:40:39 +0100 Subject: [PATCH] quickshell: trace compositor events while a panel is open MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- settings/quickshell.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/settings/quickshell.nix b/settings/quickshell.nix index 55a1760..2aeb7fd 100644 --- a/settings/quickshell.nix +++ b/settings/quickshell.nix @@ -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 // Set by the screenshot keybind (via IPC) to hold menus open