File chooser windows for GTK 3 apps too large, poorly positioned (two monitors of different resolutions)
Running GNOME Shell 42 on an XPS 13 laptop. I have an external 32" 3840x2160 monitor at 125% scaling configured as the primary display, located to the right of the laptop display, which is 3200x1800 at 200% scaling. The external monitor is taller than the laptop display; I configure the bottom of the laptop display to be in line with the bottom of the external display.
I usually have apps split left/right on the main monitor (using super+left / super+right).
If I open a file chooser (open or save as) from an app running on the right-hand side of the main monitor, the windows is sized and positioned to cover the entire main monitor. This is kind of awkward in itself: there is no earthly reason why I would need the dialog to be so huge, it makes it awkward to navigate, and results in a lot of dead space. And I can't see anything behind it while I'm using it.
It's worse if I open a chooser from an app running on the left-hand side of the main monitor or on the laptop display, though. If I do this, the window appears to be sized to fill the main monitor, but it is not positioned there. Instead it spans both monitors, and because the main monitor is taller than the laptop monitor, the top-left corner of it - where all the actual file names are - is entirely off-screen and invisible.
Just to make things more fun, dragging the chooser dialog over to the main monitor so I can actually use it also resizes and moves the application window to a size and position I did not want, and after opening or saving I have to reposition it back where it's supposed to be.
Here are some screenshots illustrating the issue.
- What I get when opening a chooser from an app running on the right-hand side of the main display:
- What I get when opening a chooser from an app running on the left-hand side of the main display. Note that the top-left of the dialog is shown in the screenshot, but as you can see from the geometry, in real life it is above the top of the laptop display and is not visible:
- What I get when opening a chooser from an app running on the laptop display. Again, the upper left portion of the dialog is not actually visible in real life: