aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_windows.mjs
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 /tests/test_windows.mjs
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 'tests/test_windows.mjs')
-rw-r--r--tests/test_windows.mjs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_windows.mjs b/tests/test_windows.mjs
index 534fd45..b985d65 100644
--- a/tests/test_windows.mjs
+++ b/tests/test_windows.mjs
@@ -25,3 +25,4 @@ assert.equal(windows.peek(st("a")), 0); // a close is not news
assert.equal(windows.peek(st("a", "c")), 5); // a new window is, for [windows] peek seconds
assert.equal(windows.peek({ error: "x" }), false); // an error keeps what it knew
assert.equal(windows.peek(st("a", "c")), 0);
+assert.equal(windows.peek({ windows: [{ id: "a" }, { id: "c" }, { id: "d", dialog: true }], peek: 5 }), 0);