Repository navigation
Conversation
…path, and behind borderless X11 fullscreen
This branch has not been deployed
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.
A taskbar on the Top layer was drawn over a fullscreen window in two cases.
fullscreen_scanout_window): it covers the output exactly, it does not animate, and no window closes on that output. Hit testing hid Top as soon as the topmost window committed the Fullscreen state. So during a close animation, a rect animation, or for a fullscreen window that is not exactly output-sized, the bar was drawn over the window while its clicks went to the window._NET_WM_STATE_FULLSCREEN. The session log shows only maximize and unfullscreen requests from such a game. The window never had the Fullscreen state, so the bar stayed above it.The change:
fullscreen_window_above_top, decides whether the topmost window of an output stacks above the Top layers. Hit testing and both renderers (tty and winit) use it. The scanout fast path keeps its own stricter conditions.BuildergetsCompositionScene::fullscreen_above_top: when it holds but the window does not own the stack, Top layers listed after the output's window stack are dropped (Overlay stays), and the scene below the window is still drawn.Tested with
tests/fullscreen_stacking.rsin shojiwm_rs, with a Top layer bar mapped:Two composition unit tests check that the Builder drops Top in front of the stack and keeps the scene below it, and that Top listed below the window stack stays.
cargo test --workspace --all-targetspasses exceptvirtual_keyboard_binds::input_method_keyboard_grab_gets_the_keymap_of_the_keys_it_is_sent, which fails the same way on main on this machine. Not tried on hardware with the game yet.