Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows launched by Godot start with WM_SIZE_HINTS set too small unless disabling Resizable (i3-gaps) #49552

Open
cptchuckles opened this issue Jun 13, 2021 · 0 comments

Comments

@cptchuckles
Copy link
Contributor

cptchuckles commented Jun 13, 2021

Godot version

master 6d98f84

System information

Linux x1e2 5.12.8-artix1-1 x86_64 GNU/Linux using i3-gaps

Issue description

Similar to #49206 but different: running a scene with F5 or F6 opens the game window with hints that specify its window size to be 0 by 0. Using xprop on a game window opened by 3.x and comparing to the xprop output for the game window opened on master shows the following additional hints are set on the window launched by master:

+WM_NORMAL_HINTS(WM_SIZE_HINTS):
+               program specified location: 0, 0
+               program specified size: 0 by 0

causing the window to open at the bare minimum size imposed by my window manager. I have to resize the window manually to get a reasonable window. This happens regardless of any dimensions given under Display > Window as long as Resizable is checked. When Resizable is unchecked, the WM_NORMAL_HINTS(WM_SIZE_HINTS) are set to the specified size, and it also adds minimums. e.g.:

WM_NORMAL_HINTS(WM_SIZE_HINTS):
                program specified location: 448, 240
                program specified size: 1024 by 600
                program specified minimum size: 1024 by 600
                program specified maximum size: 1024 by 600

In case it's at all relevant, these are the only i3-config rules I have set for anything pertaining to Godot:

for_window [instance="Godot_(?:Editor|ProjectList)"] floating enable
for_window [instance="Godot_Engine" class="^(?!Godot).*"] floating enable, border normal
for_window [instance="Godot_Editor" class="^Godot$"] resize set width 1920 px height 1060px, move position center

edit: Actually, I notice that the editor itself also opens as a tiny window at first, and then expands to my i3-config's specified size. Upon erasing the bottom line to resize the editor to 1920 x 1060, the editor itself opens up smol. The project manager window is fine.
edit 2: xprop on the editor shows that it starts with WM_SIZE_HINTS set with program specified size: 75 by 50

Steps to reproduce

  • Use master on i3-gaps
  • Leave Resizable checked
  • Run a scene from the editor, observe smol window

Minimal reproduction project

Any project, 2D or 3D

@cptchuckles cptchuckles changed the title Game starts with WM_SIZE_HINTS set to 0 by 0 when Resizable is checked (i3-gaps) Windows launched by Godot start with WM_SIZE_HINTS set to 0 by 0 when Resizable is checked (i3-gaps) Jun 13, 2021
@cptchuckles cptchuckles changed the title Windows launched by Godot start with WM_SIZE_HINTS set to 0 by 0 when Resizable is checked (i3-gaps) Windows launched by Godot start with WM_SIZE_HINTS set too small unless disabling Resizable (i3-gaps) Jun 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants