godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.52k stars 21.26k forks source link

Very small default min window size in hyprland. #96137

Open DiedByDisgust opened 3 months ago

DiedByDisgust commented 3 months ago

Tested versions

v4.3.stable.arch_linux using hyprland wm

System information

Godot v4.3.stable unknown - Arch Linux #1 SMP PREEMPT_DYNAMIC Wed, 14 Aug 2024 15:21:14 +0000 - Wayland - Vulkan (Forward+) - integrated AMD Radeon Vega 3 Graphics (RADV RAVEN) - AMD Ryzen 3 2200U with Radeon Vega Mobile Gfx (4 Threads)

Issue description

In Godot editor, windows like "Create New Node", "Instantiate Child Scene", "About Godot", and any other besides de main editor window, starts with a very little size, then you need to manually resize it.

Steps to reproduce

In Hyprland wm, launch Godot, open any project, then try to open any window, for example try to add a new node to the scene tree, or open Help ->"about godot".

Minimal reproduction project (MRP)

May be any project, no one in particular.

DiedByDisgust commented 3 months ago

currently i fixed this locally in hyprland.conf by windowrules. but it's only a workaround.

EhwazM commented 3 months ago

Could you show the windowsrules you used?

JackJ30 commented 2 months ago

@EhwazM these two windowrules worked for me (obviously adjust the window size for your screen)

windowrulev2 = size 1300 800,title:^(Create New Node)$ windowrulev2 = move center,title:^(Create New Node)$

Godot still flickers like crazy on Hyprland though. Should really be looked at

JackJ30 commented 2 months ago

For anyone looking for a better workaround, launching Godot with the single window option will stop it from creating these pop-ups as real windows.

godot --single-window

Fireye04 commented 2 months ago

Window rules were oddly inconsistent in my experience. Adding the --single-window flag to my Godot.desktop file's exec will work great till this issue is resolved :)

Riteo commented 2 months ago

Howdy, thanks for reporting! I'm adding this to the XWayland tracker to let other users know.

Quick note in case you're not aware of: if you all see a different "native" window for each popup you're using the X11 backend through XWayland, as the Wayland backend is single-window-mode-only for now.

The single window option mentioned above is also settable from the editor preferences, without needing to edit the desktop entry. To do so, open the editor settings and tick the checkbox in "Interface -> Editor -> Single Window Mode" (interface/editor/single_window_mode)

If you feel adventurous you might also try the editor with the experimental wayland backend by turning on "Run -> Platforms -> Prefer Wayland" (run/platform/linuxbsd/prefer_wayland) ;)

Note that both of these changes will apply only to the editor, and not the running game.