Skip to content

Linux: HUD on GNOME Wayland through XWayland; refresh a stale XAUTHORITY - #479

Merged
thdxr merged 1 commit into
devfrom
xwayland-hud
Oct 30, 2026
Merged

thdxr merged 1 commit into
devfrom
xwayland-hud

Conversation

@thdxr

@thdxr thdxr commented Oct 30, 2026

Copy link
Copy Markdown
Member

Fixes #465 (and informs #464).

  • HUD on GNOME. Mutter has no layer-shell, so the recording HUD never showed. Rune (anomalyco/rune@9983acad) now opens an overlay that takes no input as an override-redirect ARGB X11 window on XWayland (notification type, empty input shape, primary monitor's top/bottom edge, scale from Xft.dpi) when the compositor lacks layer-shell and DISPLAY is set. Only the HUD uses it; the window and GlobalShortcuts portal stay native Wayland. Without XWayland, the Fix #465: recording HUD on GNOME Wayland #466 status and log remain.
  • Stale XAUTHORITY. Xwayland writes a new cookie each login, so the path saved in session.env broke X11 connections after a reboot. At startup, a missing XAUTHORITY file is replaced by the systemd user manager's current value, else dropped.
  • Rune pin bumped to dev head + the XWayland overlay; nix outputHash updated.
  • Docs: docs/linux.md, docs/features/README.md, AGENTS.md (XWayland for the HUD only is now an allowed exception).

Tested on apollo in headless mutter 51 + Xwayland (private D-Bus, separate data root): HUD appears at the top centre (808,12, 304×80, _NET_WM_WINDOW_TYPE_NOTIFICATION), Dot scope animates (consecutive captures differ), the focused window keeps focus, the pointer over the HUD hits the window below, and hex dictation start/stop record, transcribe and paste. Mutter alone has no GlobalShortcuts portal, so portal shortcuts weren't exercised there; Hex's Wayland side is unchanged. Not yet tried on a full GNOME Shell session.

Thanks to the #465 reporter for the analysis.

— from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

…e XAUTHORITY

On a Wayland compositor without layer-shell (GNOME's Mutter), Rune now opens
only the HUD as an override-redirect, click-through X11 window on XWayland
(Rune 9983acad). The rest of Hex stays on Wayland, so portal shortcuts keep
working. Without XWayland, the #466 status and log remain.

A saved XAUTHORITY whose file is gone after a reboot is replaced at startup by
the user manager's current value, else dropped.

Fixes #465
@thdxr
thdxr merged commit 0817ea6 into dev Oct 30, 2026
2 of 6 checks passed
kitlangton added a commit that referenced this pull request Oct 30, 2026
kitlangton added a commit that referenced this pull request Oct 30, 2026
* Windows settings show Terminal paste (#478)

* Regenerate light onboarding goldens after the Rune pin bump (#479)

* Regenerate output-light golden for the spark (#476)
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.

GNOME Wayland: recording HUD never appears (no layer-shell); XWayland fallback breaks portal hotkeys

1 participant