Skip to content

fix(float): apply KWin skipswitcher rule to the XWayland fallback too - #60

Merged
ElbertePlinio merged 1 commit into
mainfrom
feat/46-task-switcher
Jul 23, 2026
Merged

ElbertePlinio merged 1 commit into
mainfrom
feat/46-task-switcher

Conversation

@ElbertePlinio

Copy link
Copy Markdown
Member

Summary

Port of the accepted pickforge/pickgauge#49 fix (pickgauge#66) to PickScribe's own KWin module, per this repo's #46:

  • PickScribe's kwin.rs had the identical bug: ensure_float_rule() early-returned on GDK_BACKEND=x11, so the PICKSCRIBE_X11=1 XWayland fallback never got the KWin skipswitcher rule — and EWMH has no switcher hint, so that rule is the only Alt+Tab exclusion mechanism
  • gate replaced with the pure is_kde_wayland_session(xdg_session_type, xdg_current_desktop) predicate (renderer backend is orthogonal); 7 ported unit tests; KDE-desktop filter for kwinrulesrc writes unchanged
  • honest platform docs: Linux-only table rows (no fabricated cross-platform claims — PickScribe ships Linux-only today)

Closes #46. Follow-up filed: #59 (pre-existing macOS cargo test compile failure — transparent feature — which blocked the full local Rust run; verified byte-identical on main; Linux CI runs the full suite on this PR as the real gate).

Validation

Local review: trivial risk class — main-session review of a twice-reviewed accepted pattern (reference reviewed clean at pickgauge#66); port fidelity verified against the reference diff.

ensure_float_rule() early-returned when GDK_BACKEND=x11, so KDE Wayland
sessions using the PICKSCRIBE_X11=1 XWayland fallback never received the
KWin skipswitcher rule. X11's EWMH has no switcher-hint equivalent, so
that rule is the only way to keep the capsule out of Alt+Tab there.

Gate replaced with a pure is_kde_wayland_session(xdg_session_type,
xdg_current_desktop) predicate (renderer backend is orthogonal to
session type); 7 unit tests added. KDE-desktop filter for kwinrulesrc
writes is unchanged. Ports the accepted pickforge/pickgauge#49 fix
(pickgauge#66) to PickScribe's own KWin module.

Closes #46
@ElbertePlinio
ElbertePlinio merged commit 60c8993 into main Jul 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keep the floating capsule out of task switchers

1 participant