You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
Keep the floating capsule out of task switchers #49
The PickGauge floating capsule appears as a separate window in KDE's Alt+Tab switcher even though it is non-focusable and excluded from the taskbar.
Verified cause
The native float already uses Tauri focusable(false) and skip_taskbar(true). On the current KDE Wayland session running WebKitGTK through XWayland (GDK_BACKEND=x11), X11 exposes _NET_WM_STATE_SKIP_TASKBAR and _NET_WM_STATE_SKIP_PAGER, but the window remains _NET_WM_WINDOW_TYPE_NORMAL.
PickGauge already installs a KWin rule containing skipswitcher=true, but ensure_float_rule explicitly returns when GDK_BACKEND=x11. The rule therefore never applies to this XWayland window.
Tauri documents skip_taskbar as unsupported on macOS, so one portable flag cannot guarantee identical behavior on every desktop/window manager.
Expected behavior
The capsule remains visible, draggable, click-through outside its shape, always-on-top, and non-focusable.
It does not appear as a separate taskbar, pager, Alt+Tab, or equivalent window-switcher item where the OS permits this.
Linux KDE handles native Wayland and XWayland.
Windows retains the Tauri/native tool-window behavior.
macOS uses an appropriate non-activating panel/transient-window treatment where needed; document unavoidable app-level Cmd+Tab semantics.
Other Linux window managers receive standards-based hints without app-managed desktop configuration when possible.
Agent plan
Reproduce and capture current X11/KWin window properties
Apply the scoped KWin skipswitcher rule to XWayland as well as native Wayland
Evaluate a non-normal GTK window type only if the scoped rule is insufficient
Preserve float geometry, input shape, focus, workspace, and always-on-top behavior
Add platform-gated tests for window configuration and KWin rule generation
Smoke-test KDE Wayland/XWayland Alt+Tab plus taskbar and pager behavior
Document Windows/macOS support boundaries from Tauri
Update docs/releases/UNRELEASED.md
Run focused validation and Grok-first local review
Open one PR that closes this issue
Feature flag: none. This is a desktop-window behavior correction.
Reopening: remote hardware audit on Elberte-PC's real KWin Wayland seat (2026-07-23) shows the shipped rule never matches. Evidence via KWin scripting DBus:
Live window: caption "PickGauge Float", class Pickgauge → skipSwitcher=false (only the app-side skipTaskbar works).
~/.config/kwinrulesrc contains the app-written rule with wmclass=pickgauge (lowercase, substring) — KWin wmclass matching is case-sensitive, so it never applies; qdbus … reconfigure changes nothing.
Experiment: rewriting the rule's wmclass to Pickgauge + reconfigure → skipSwitcher=true immediately on the live window. Root cause proven.
Fix: kwin.rsWM_CLASS must be the real runtime class (Pickgauge), tests updated to pin it.
Fixed and hardware-verified. #72 writes the real runtime class (Pickgauge) with a stale-rule migration so existing installs rewrite the old lowercase rule, plus the same fix in the desktop launchers' StartupWMClass. Proof on Elberte-PC's live KWin Wayland seat: with the corrected class the live float window flips to skipSwitcher=true (KWin scripting audit), which the shipped lowercase rule never achieved. Owner accepted Linux-native items for release.
Activity
fix(float): apply KWin skipswitcher rule to the XWayland fallback too (…
ElbertePlinio commentedon Jul 23, 2026
Reopening: remote hardware audit on Elberte-PC's real KWin Wayland seat (2026-07-23) shows the shipped rule never matches. Evidence via KWin scripting DBus:
Pickgauge→skipSwitcher=false(only the app-sideskipTaskbarworks).~/.config/kwinrulesrccontains the app-written rule withwmclass=pickgauge(lowercase, substring) — KWin wmclass matching is case-sensitive, so it never applies;qdbus … reconfigurechanges nothing.Pickgauge+ reconfigure →skipSwitcher=trueimmediately on the live window. Root cause proven.Fix:
kwin.rsWM_CLASSmust be the real runtime class (Pickgauge), tests updated to pin it.fix(kwin): match the real capsule window class in the switcher rule (#72
ElbertePlinio commentedon Jul 24, 2026
Fixed and hardware-verified. #72 writes the real runtime class (
Pickgauge) with a stale-rule migration so existing installs rewrite the old lowercase rule, plus the same fix in the desktop launchers' StartupWMClass. Proof on Elberte-PC's live KWin Wayland seat: with the corrected class the live float window flips toskipSwitcher=true(KWin scripting audit), which the shipped lowercase rule never achieved. Owner accepted Linux-native items for release.