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 windows jump up after they appear on screen #79581

Open
Tracked by #66458
okla opened this issue Jul 17, 2023 · 10 comments
Open
Tracked by #66458

Project windows jump up after they appear on screen #79581

okla opened this issue Jul 17, 2023 · 10 comments

Comments

@okla
Copy link

okla commented Jul 17, 2023

Godot version

v4.1.stable.official [9704596]

System information

Godot v4.1.stable - Fedora Linux 38 (Cinnamon) - Vulkan (Compatibility) - Mesa Intel(R) UHD Graphics 630 (CML GT2) () - Intel(R) Core(TM) i5-10505 CPU @ 3.20GHz (12 Threads)

Issue description

Project's main window and all windows created and shown from code jump up after they appear on screen. There is no such issue in 4.0.3.

May be related to #79888

Steps to reproduce

  1. Create a new project
  2. Create main scene with any node in it
  3. Run the project

Minimal reproduction project

Bug.zip

@clayjohn
Copy link
Member

What do you mean by "jump up"?

@okla
Copy link
Author

okla commented Jul 19, 2023

@clayjohn Here are the subsequent frames of launching the attached project recorded in 4.1.1. As you can see in the last frame the window moves up (for the height of its top decoration I guess). There was no such behavior before 4.1.

1
2
3

@Calinou
Copy link
Member

Calinou commented Jul 19, 2023

@okla Can you try following the same steps on 4.1 dev/beta/RCs? You can download them here.

Also, are you using a X11 or Wayland session? Use echo $XDG_SESSION_TYPE in a terminal to know.

@okla
Copy link
Author

okla commented Jul 19, 2023

@Calinou It's X11. I'll test it on the betas a little later.

@okla
Copy link
Author

okla commented Jul 25, 2023

@Calinou I've tested this issue on previous versions and it exists since 4.1.dev1 (4.2.dev2 is affected too). It's also not exclusive to compatibility mode and appears in all rendering modes (will correct the issue text and title).

@okla okla changed the title Compatibility mode project windows jump up after they appear on screen Project windows jump up after they appear on screen Jul 25, 2023
@n0tank3sh
Copy link
Contributor

n0tank3sh commented Jul 26, 2023

Is this occurring with --single-window?
Edit: Most Important question. Is this occurring in any other window manager than Muffin? There was a commit(PR: #76040) made by me that changes the window position as it is assigned decoration(reparenting of the window). It's supposed to work on most window managers and this seemed to be an exception here. As I guess it's probably already changing the position of the window after decoration. I may be wrong here about the exact mechanism of it.

@okla
Copy link
Author

okla commented Jul 26, 2023

@MightiestGoat Yeah, this occurs with --single-window (if I understand correctly that it should be passed to the editor on launch).

Unfortunately, I don't have another WM to test.

@reptofrog
Copy link
Contributor

reptofrog commented Aug 6, 2023

Same thing happens on GNOME Xorg and GNOME Wayland. Here's a recording:
screencast.webm

@okla
Copy link
Author

okla commented Sep 1, 2023

What else can be done to fix this issue? Since it's a regression in 4.1.dev1 maybe some commit between it and 4.0.3 can simply be reverted?

@akien-mga
Copy link
Member

@okla You can try to revert #76040 locally and see if that's indeed what caused the change.

As you can see in that PR and the linked issue, it fixes an issue which is the opposite of what you're experiencing, so simply reverting it won't really improve things, it will just make it worse for others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants