godotengine / godot

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

Project manager window resizes then moves during startup #93028

Open akien-mga opened 2 months ago

akien-mga commented 2 months ago

Tested versions

System information

Fedora Linux 40 (KDE Plasma) - Wayland - Vulkan (Forward+) - dedicated AMD Radeon RX 7600M XT (RADV NAVI33) () - AMD Ryzen 7 7840HS w/ Radeon 780M Graphics (16 Threads)

Issue description

I noticed that at least on my Linux system on KDE, when starting the project manager, the following happens:

This is how it looks like in action:

https://github.com/godotengine/godot/assets/4701338/4faeeb92-a5dc-4edc-8282-ba9ad7d3e9a3

Screenshots to compare sizes and positions:

Screenshot_20240611_131927 Screenshot_20240611_131957 Screenshot_20240611_131940

Steps to reproduce

Minimal reproduction project (MRP)

n/a

Yagich commented 2 months ago

Happens on x11 KDE as well

alvinhochun commented 1 month ago

The cause of the resize is simple - the default window size is defined at https://github.com/godotengine/godot/blob/97b8ad1af0f2b4a216f6f1263bef4fbc69e56c7b/main/main.cpp#L215 as 1152x648. It was increased slightly in #55032, but the Project Manager still kept the previous size 1024x600. https://github.com/godotengine/godot/blob/97b8ad1af0f2b4a216f6f1263bef4fbc69e56c7b/editor/project_manager.cpp#L159

Simply syncing the two will get rid of the resize, but only when the editor scale is 100%.

No idea why the window moves a second time though. That doesn't happen for me on Windows, or at least I couldn't notice.

Calinou commented 1 month ago

https://github.com/godotengine/godot/pull/91889 should fix this.