From 79d3be64f0a3e4552b08c80f1678649ccbff2a7c Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 11 Nov 2026 10:01:11 +0100 Subject: feat(windows): a new window brings the Windows tab forward When a window id appears that the last poll did not list, the tablet shows the Windows tab for [windows] peek seconds (default 8, 0 off) and then goes back to the tab it was on. A touch on the page or a tab change meanwhile keeps it there; another new window restarts the timer. The hook is generic: a panel's peek(state) returns seconds, app.js does the switching. The first poll only learns what is open, and an error state keeps what it knew, so neither triggers it. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'AGENTS.md') diff --git a/AGENTS.md b/AGENTS.md index 7db00b7..0998ff4 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -90,6 +90,10 @@ Keep the server dependency-free apart from that one package. through `Module.image`, only for a window the last state listed; the URL changes every 5s so the browser cache answers in between. Workspace icons come from keystone's `Workspaces.qml` map (`[windows] workspace_icons`). +- 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). - Launchers are `[launch] apps`, desktop ids run with `gtk-launch`; label and icon come from the `.desktop` file. The client sends the id, which must be configured and installed. -- cgit v1.2.3