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

Window doesn't resize properly when changing resolution, with "Display Server" set to "Wayland" in Project Settings #94157

Open
Tracked by #88346
OPato616 opened this issue Jul 10, 2024 · 0 comments

Comments

@OPato616
Copy link

OPato616 commented Jul 10, 2024

Tested versions

  • Reproducible in 4.3.rc3, 4.3.rc2, 4.3.rc1, 4.3.beta3, 4.3.beta2 and 4.3.beta1

System information

Godot v4.3.beta2 - EndeavourOS #1 SMP PREEMPT_DYNAMIC Fri, 05 Jul 2024 22:11:24 +0000 - Wayland - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 Ti (nvidia; 555.58.02) - AMD Ryzen 5 3600 6-Core Processor (12 Threads)

Issue description

After changing the "Linux Display Server" in the "Project Settings" to "wayland" (Project Settings -> Display Server -> Driver.linuxbsd -> wayland), when changing the project resolution "in-game", in Windowed Mode, the project window doesn't resize and center automatically, contrary to the expected behavior when the "Linux Display Server" is set to "default" or "x11", as demonstrated below.

"Linux Display Server" set to "default":

MRPWaylandTestingDefault.mp4

"Linux Display Server" set to "wayland":

MRPWaylandTestingWayland.mp4

It does, however, adapt the project window size if changed manually, by dragging the window border.

As this seems to be an issue specifically with Wayland as the compositor, I include here my system information, obtained with fastfetch, to better help solve the issue:

2024-07-10_00-47

Steps to reproduce

  • Change the "Linux Display Server" in the "Project Settings" to "Wayland" (Project Settings -> Display Server -> Driver.linuxbsd -> wayland)
  • Change resolution using get_window().set_size()
  • Repeat but with "Linux Display Server" set to "default" or "x11" (Project Settings -> Display Server -> Driver.linuxbsd -> default) to see expected behavior

The MRP included below has a simple option button to set different resolutions for better testing, as well as the background godot icon to help see the issue better.

Minimal reproduction project (MRP)

MRPWaylandTesting.zip

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

3 participants