Repository navigation
feat(overlay): Wayland toplevel fallback without layer-shell or XWayland, and degraded-capability reporting (#20) - #2197
Merged
Merged
Conversation
…and, and degraded-capability reporting (#20)
opencodejr
Bot
force-pushed
the
bot/issue-20
branch
from
November 25, 2026 08:57
ff3d1eb to
3b2284a
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.
Fixes #20.
What changed
crates/rune/src/overlay/toplevel.rs). Overlays that used to goUnavailableon GNOME now get a surface: no XWayland,KeyPolicy::OnDemand, or pointer input withoutOverlayOptions::xwayland_input.with_name), so the dock groups it with the app instead of listing it alone.preferences::window_dark, the same helper ordinary windows use.hide_windowdestroys it and drops its hidden images, as for a layer surface. The next show makes a new one.set_cursor_hittest): empty forOverlayInput::None, the whole surface otherwise. It's set on creation and again inapply_input.OverlayCapabilitiesgainsplacement,always_on_topandclick_through. A crate-privateOverlayCapabilities::placed(..)builds them asSupportedfor every existing backend (layer-shell, XWayland, X11, macOS, Windows). The toplevel reportsplacementandalways_on_topasUnsupported, andclick_throughtoo underOverlayInput::Regions. Capture exclusion, global pointer and nonactivating keys are alsoUnsupportedthere.overlay-labalready printsOverlayCreated { capabilities }, so the new fields appear in its output.crates/rune/README.mdand the module docs; addedchangelog/unreleased/2026-11-25-wayland-overlay-toplevel-fallback.md.Compatibility
Code that builds
OverlayCapabilitiesas a struct literal needs the new fields. I found none in this repository; the changelog notes it. The compositor may focus the toplevel when it appears (nonactivating_keysisUnsupported).Testing
cargo check -p rune --all-targetsis clean.cargo clippy -p rune --lib --testsadds no new kinds of warning. The new.unwrap()on the capabilities lock gets the sameunwrap_usedwarning as the existing locks in these files.libxkbcommon.so.0throughRUSTFLAGS="-L <dir>", because its dev package isn't installed here. WithRUNE_ALLOW_NO_GPU=1:cargo test -p rune --lib toplevel: both new tests intoplevel_tests.rspass.cargo test -p rune --lib overlay: 134 passed.cargo test -p rune --librun on the first version of this patch: 3122 passed, 1 failed. The failure (el::tx::rects::tests::a_handler_reads_a_row_it_removes_where_it_stood) fails the same way without this change. Not re-run after the review fixes.cargo check -p rune --lib --target x86_64-unknown-freebsd: the cfg error the review found (portal_appearancemissing on non-Linux Unix) is gone. One error is left (commit_generationinwindow/host/stepping.rs); it fails the same way without this change.Not verified
No overlay example has been seen on GNOME Wayland, or on any real compositor. The issue's "Done when" check (an overlay shows on GNOME and the capability report says what's missing) still needs a manual run of
overlay-labon GNOME Wayland. That should cover anOnDemandpicker and aRegionspill, and check that a prewarmed toplevel stays off screen until its first visible frame.Closes #20