fix(gui-x): stop empty/grey block on Ubuntu/GNOME; safer geometry#42
Merged
Conversation
The X Edition Warp-style Linux GUI was opening as an empty grey block
on Ubuntu/GNOME because:
1. root.overrideredirect(True) made the WM treat the window as a
special undecorated type whose content is not painted until the
user interacts with it.
2. root.state("zoomed") in __init__.py was applied to an
already-maximizing window with conflicting geometry, leaving the
content area blank.
3. No update_idletasks() / deiconify() after geometry changes, so
the WM never flushed the new size to the X server.
Fixes:
* src/gui_x/__init__.py — drop state("zoomed"); add
update_idletasks() + deiconify() so the
window is visible immediately.
* src/gui_x/launcher.py — disable the overrideredirect branch on
Linux; fall back to native window
decorations (more reliable on every DE).
* src/gui_x/titlebar.py — keep the Python 3.14 winfo_children()
try/except patch.
Tested: full widget tree visible at 1400x900 with Catppuccin Mocha
background; sidebar (48px) + content (1352px) both render.
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.
Problem
The X Edition Warp-style Linux GUI was opening as an empty grey block on Ubuntu/GNOME.
Root cause
root.overrideredirect(True)made the WM treat the window as a special undecorated type whose content is not painted until the user interacts with it.root.state("zoomed")in__init__.pywas applied to an already-maximizing window with conflicting geometry, leaving the content area blank.update_idletasks()/deiconify()after geometry changes, so the WM never flushed the new size to the X server.Fix
src/gui_x/__init__.py— dropstate("zoomed"); addupdate_idletasks()+deiconify()so the window is visible immediately.src/gui_x/launcher.py— disable theoverrideredirectbranch on Linux; fall back to native window decorations (more reliable on every DE).src/gui_x/titlebar.py— keep the Python 3.14winfo_children()try/except patch.Test
Full widget tree visible at 1400x900 with Catppuccin Mocha background; sidebar (48px) + content (1352px) both render.
Notes
auto_patch_trae_solo.py,discord_controller.py,trae-solo-local/,install_patched*.sh,install_trae_solo.sh,run_and_install_trae_solo.sh) are deliberately NOT included in this PR — they're from an unrelated work session.