Repository navigation
Restore X11 root cursor on desktop reveal to prevent transparent cursor over XWayland apps (#14561) - #14580
Conversation
[Medium impact] The PR appears safe to merge; no blocking issues remain. SummaryRestores the X11 root cursor when the desktop appears.
The earlier missing-dependency findings are addressed. No new actionable issues were found in the rename. Reviews (7) · Last reviewed commit: "Run the xsetroot migration after the new..." · Reviewed by Greptile |
5dfd51c to
72f51e5
Compare
|
@greptile review |
|
This should be merged. It is very annoying to have to run |
|
Reviewed at 72f51e5 and verified on a disposable Omarchy worker. Nothing found that needs changing. Reproduced. After a cold login, I mapped a plain X11 window that sets no cursor of its own, put the pointer over it, and read the cursor XWayland was showing with
Tests on the worker: Read: the new line is in the one branch every reveal goes through (the normal reveal, the 15s recovery timer and the reload Other open pull requests on this file: #14818 and #14922 fix different startup-cursor problems and never touch the X11 root cursor. #14842 carries this branch's commit inside its own larger change. This is the earliest fix for #14561. Codex Medium gave a second opinion and found no defects. Comparing the diffs of #14818, #14842 and #14922, it reached the same conclusion about them. It can read this session's notes, so treat that as agreement, not an independent check. Nothing is needed from you. This is waiting on the maintainer. |
…or over XWayland apps (omacom#14561) - Reset the X11 root cursor via xsetroot during omarchy_startup_cursor_restore(true) - Add xorg-xsetroot to base packages and migration for existing installs - Update startup cursor test coverage
72f51e5 to
98b09dd
Compare
1791835389 sorted before migrations already on quattro and v4-5-0. Renamed with a fresh timestamp so it runs in order on both branches.
…or over XWayland apps (#14561) (#14580) * Restore X11 root cursor on desktop reveal to prevent transparent cursor over XWayland apps (#14561) - Reset the X11 root cursor via xsetroot during omarchy_startup_cursor_restore(true) - Add xorg-xsetroot to base packages and migration for existing installs - Update startup cursor test coverage * Run the xsetroot migration after the newest quattro and 4.5 migrations 1791835389 sorted before migrations already on quattro and v4-5-0. Renamed with a fresh timestamp so it runs in order on both branches. --------- Co-authored-by: Ryan Hughes <[email protected]> (cherry picked from commit 8e74d36)
omacom#14580 resets the XWayland root cursor in restore(true). Here that call moves into the 600 ms reveal, after the user's cursor settings are back, so the root cursor is reset at the same point in the reveal as on quattro. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes #14561
Problem
Omarchy initializes the compositor with a transparent startup cursor (
omarchy-startup) to avoid cursor flicker during boot and theme loading. When XWayland initializes under Hyprland, it inherits this environment and sets the blank cursor as the X11 root cursor. When the desktop reveals viaomarchy_startup_cursor_restore(),hyprctl setcursorrestores Wayland cursors, but XWayland's default root cursor remains transparent for X11 applications that do not set an explicit client cursor.Solution
xsetroot -cursor_name left_ptr >/dev/null 2>&1 || trueviahl.exec_cmd()duringomarchy_startup_cursor_restore(true)to reset the X11 root cursor once the desktop reveals.xorg-xsetrootto base packages and migration for existing installs.test/shell.d/hyprland-startup-cursor-test.shto assert dispatch ofxsetrootalongside the Hyprcursor restoration.