Some windows are always maximized upon opening if a lower-resolution display is on the left of the primary display
Affected version
44.1 on Fedora 38, both X11 and Wayland
Bug summary
This is on a dual-display setup, one with resolution 3840x2160 as primary and another 1920x1080 as secondary, both at 200% scaling.
If the secondary display is placed on the left side of the primary, then some windows are always maximized upon opening, including gnome-terminal (with default size set to 132x43), nautilus, firefox, gnome-text-editor. This seems to happen when the size of the window when it's last opened is large. This doesn't happen if only the primary display is enabled or if the secondary display is placed on the right side of the primary: the windows of the same sizes are not opened maximized but with their previous sizes.
This affects both X11 and Wayland session, including with "scale-monitor-framebuffer" enabled, although in different situations the threshold window size is not always the same. But I find that gnome-terminal example reliably reproduces in all cases.
Steps to reproduce
- Configure the display arrangement as described above.
- Open gnome-terminal and set it's default size to 132x43 in preferences.
- Or for other apps that can remember the window size, just resize it so that it occupies more than about half of the display.
- Close and re-open the window.
What happened
The window is maximized after re-opening.
What did you expect to happen
The window opens with its previous size, same as with only the primary display or with the secondary on the right side of the primary.