fix(desktop): map GNOME X11 window before Mutter management - #5435
Draft
neodaysoff wants to merge 1 commit into
Draft
fix(desktop): map GNOME X11 window before Mutter management#5435neodaysoff wants to merge 1 commit into
neodaysoff wants to merge 1 commit into
Conversation
Signed-off-by: Neo Days Off <neodaysoff@users.noreply.github.com>
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.
Summary
override_redirect, then remaps it under Mutter managementRoot cause
On an NVIDIA DGX Spark running Ubuntu 24.04 with GNOME/X11, Mutter accepted Buzz's correctly sized GTK client but immediately left it in
WM_STATE=IconicandMap State: IsUnMapped. Calls toshow,unminimize, focus, delayed reveal, opaque rendering, and the existing WebKit safe-rendering settings did not map it.Realizing the hidden GTK
ApplicationWindow, performing its first map outside window-manager redirection, and handing it back to Mutter after 100 ms produced a normal managed window. Native decorations reintroduced the Iconic state on the affected system, so the Linux configuration uses application chrome.This addresses the GNOME/X11 mapping path reported in #2811. The original Fedora/Skia transparent-window report may have a separate rendering cause, so this PR does not close the broader issue.
User impact
Affected Linux users get a visible, taskbar-managed window with working focus, movement, resizing, minimize/maximize, close, and Alt-F4 behavior. Linux starts at a normal size rather than restoring saved maximized state; macOS and Windows continue restoring window state.
The ARM64 sidecar packaging issue noted in the field report is intentionally out of scope.
Validation
cargo fmt --manifest-path desktop/src-tauri/Cargo.toml --all -- --checkcargo check --manifest-path desktop/src-tauri/Cargo.toml --libpnpm -C desktop exec biome check src/app/AppTopChrome.tsxpnpm -C desktop typecheckpnpm -C desktop buildpnpm -C desktop check:file-sizesIsViewable,WM_STATE=Normal, override redirect disabled after remap, onboarding completedSigned-off-by: Neo Days Off neodaysoff@users.noreply.github.com