Reused non-resizable child windows are offset when opened two or more times, and the parent window stops following in 1:1 sync
Affected version
GNOME 46 on Wayland (not reproducible on Xorg)
Bug summary
Reused (closed and not destroyed) non-resizable child windows, like the Keyboard Shortcuts window, are offset when opened for the second time, and the parent window stops following in 1:1 sync.
Steps to reproduce
- Open any GTK4 app
- Open the Keyboard Shortcuts window
- Close the Keyboard Shortcuts window
- Open the Keyboard Shortcuts window a second time
What happened
The Keyboard Shortcuts window is slightly offset, i.e. not placed in the center of the window. Specifically, the window is placed lower to the right. When dragging it around, the parent window is a few milliseconds behind the Keyboard Shortcuts window.
What did you expect to happen
The Keyboard Shortcuts window is supposed consistently stay at the middle of the parent window, and the parent window is supposed to consistently follow the Keyboard Shortcuts window without being a few milliseconds behind.
Relevant logs, screenshots, screencasts etc.
While experimenting with apps, I was able to reproduce it with the remote login dialog from GNOME Settings, which can be found in Settings → System → Secure Shell. I opened gnome-control-center!2382 (closed) to work around it. It seems to me that it's only reproducible when the child is reused (closed and reopened), rather than destroyed and reopened.
Opening the Keyboard Shortcuts window for the first time | Opening the Keyboard Shortcuts window for the second time |
---|---|