Reused non-resizable child windows get stuck at the top-left of the leftmost monitor in a multi-monitor setup when the child window is opened two or more times if the top of the left monitor is below the highest configured display
Affected version
GNOME 46 on Wayland
Bug summary
Reused (closed and not destroyed) non-resizable child windows get stuck at the top-left of the leftmost monitor in a multi-monitor setup when the child window is opened two or more times if the top of the left monitor is below the highest configured display, making it unusable unless it's closed with Esc
.
Steps to reproduce
-
Have the leftmost monitor configured lower than the highest configured display, like so:
-
Open any GTK4 app
-
Open a non-resizable window that gets closed (not destroyed) and reopened, like the Keyboard Shortcuts window
-
Close the Keyboard Shortcuts window
-
Open the Keyboard Shortcuts window a second time
What happened
The Keyboard Shortcuts window got stuck above my first configured display, making it unusable.
What did you expect to happen
The Keyboard Shortcuts window is supposed to consistently open within the monitor the window is in.
Relevant logs, screenshots, screencasts etc.
Additional Comments
Related issue: #3370 (closed)
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.
Thanks to @velsinki, we discovered that it only happens with non-resizable child windows (resizable=false
).
I have tested it on GNOME with Xorg and on Plasma with Wayland. Both don't have this issue.
System Details Report
System Details
Report details
- Date generated: 2024-03-15 17:05:14
Hardware Information:
- Hardware Model: Micro-Star International Co., Ltd. MS-7A39
- Memory: 8.0 GiB
- Processor: AMD Ryzen™ 5 1600 × 12
- Graphics: AMD Radeon™ RX 580 Series
- Disk Capacity: 2.3 TB
Software Information:
- Firmware Version: 2.NM
- OS Name: Fedora Linux 40.20240315.0 (Silverblue Prerelease)
- OS Build: (null)
- OS Type: 64-bit
- GNOME Version: 46
- Windowing System: Wayland
- Kernel Version: Linux 6.8.0-63.fc40.1.x86_64