Skip to content
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
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

Closed

Description

@ElbertePlinio

Problem

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.

Activity

  1. ElbertePlinio commented on Jul 23, 2026

    @ElbertePlinio
    MemberAuthor

    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.rs WM_CLASS must be the real runtime class (Pickgauge), tests updated to pin it.

  2. ElbertePlinio commented on Jul 24, 2026

    @ElbertePlinio
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions