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

Project manager window resizes then moves during startup #93028

Open
akien-mga opened this issue Jun 11, 2024 · 3 comments
Open

Project manager window resizes then moves during startup #93028

akien-mga opened this issue Jun 11, 2024 · 3 comments

Comments

@akien-mga
Copy link
Member

Tested versions

  • Reproducible in 4.3.beta (a0bbd39)
  • Reproducible in 4.2.2-stable
  • Partially reproducible (one move, no resize) in 4.2.1-stable and earlier

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:

  • The window is shown with the splash screen centered and window size 1154x677
  • The window is resized and the splash screen is now off center, with window size 1026x629
  • The window is moved towards the top left when showing the project manager, still with window size 1026x629

This is how it looks like in action:

2024-06-11.13-16-26.mp4

Screenshots to compare sizes and positions:

Screenshot_20240611_131927
Screenshot_20240611_131957
Screenshot_20240611_131940

Steps to reproduce

  • Start the project manager on Linux / KDE

Minimal reproduction project (MRP)

n/a

@akien-mga akien-mga added this to the 4.x milestone Jun 11, 2024
@akien-mga akien-mga changed the title Project manager window resize then moved during startup Project manager window resizes then moves during startup Jun 11, 2024
@Yagich
Copy link
Contributor

Yagich commented Jun 14, 2024

Happens on x11 KDE as well

@alvinhochun
Copy link
Contributor

alvinhochun commented Jul 13, 2024

The cause of the resize is simple - the default window size is defined at

static Size2i window_size = Size2i(1152, 648);
as 1152x648. It was increased slightly in #55032, but the Project Manager still kept the previous size 1024x600.
const Size2 default_size = Size2(1024, 600) * EDSCALE;

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
Copy link
Member

Calinou commented Jul 13, 2024

#91889 should fix this.

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

4 participants