Repository navigation
Overlay: an XWayland surface's hit regions follow every frame it draws - #279
Merged
Merged
Conversation
Only a frame that drew nothing new published the overlay's hit regions to its XWayland surface, so an overlay that redraws each frame kept the empty input shape it was created with and took no clicks on a Wayland desktop without layer-shell.
The comment on the XWayland region update described the surface shape applying and most frames drawing it unchanged. Name the mechanism instead: an X11 input shape applies at once with no commit, and `regions` skips an unchanged shape.
thdxr
force-pushed
the
fix-xwayland-drawn-regions
branch
from
November 8, 2026 06:29
d851077 to
5852329
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
An XWayland overlay only published its hit regions on a frame that drew nothing new, so one that redraws every frame (a capsule with a ticking clock) kept the empty input shape it was created with and took no clicks on a Wayland desktop without layer-shell.
Every drawn frame now also sets the surface's input shape from the geometry it drew, through the same
XwaylandSurface::regionsthatapply_inputandunchanged_framealready use. It returns early when the shape is unchanged, so the per-frame call is cheap.Closes #276. Reported with a diagnosis by @pkkid in anomalyco/hex#1526.