aboutsummaryrefslogtreecommitdiffstats
path: root/AGENTS.md
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-11-13 16:39:49 +0100
committerDanilo M. <danix@danix.xyz>2026-11-13 16:39:49 +0100
commit4bc6d69fc0fbfc3de5fb84874985a26deb79fdb5 (patch)
treee5209733fb7b1b8a5d31ad53e703b04273bb1c4c /AGENTS.md
parent863f7453f9e136cadc93db9f3f0b8f257f798ce8 (diff)
downloaddeck-it-4bc6d69fc0fbfc3de5fb84874985a26deb79fdb5.tar.gz
deck-it-4bc6d69fc0fbfc3de5fb84874985a26deb79fdb5.zip
fix(windows): no peek for a dialog
A transient dialog brought the Windows tab forward like any new window. Hyprland's clients JSON has no parent field, so a window counts as a dialog when it floats and its pid already has another window; peek() skips those. They are still listed in the grid. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'AGENTS.md')
-rw-r--r--AGENTS.md3
1 files changed, 2 insertions, 1 deletions
diff --git a/AGENTS.md b/AGENTS.md
index c577643..b88fcd5 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -105,7 +105,8 @@ Keep the server dependency-free apart from that one package.
- A panel may export `peek(state)`; when it returns seconds > 0 `app.js`
shows that tab that long and then goes back, unless the page is touched or
the tab changed meanwhile. `windows.js` peeks on a window id the last poll
- lacked, for `[windows] peek` seconds (0 off).
+ lacked, for `[windows] peek` seconds (0 off), unless it is a dialog
+ (floating, its pid already has a window; Hyprland gives no parent).
- `music` drives any MPRIS player through `playerctl` (playerctld picks the
last active one). A `data:` cover, or a local video with no cover (Haruna
sends none), is served at `/api/music/image/<key>`, a video as an `ffmpeg`