Window/Dialog jumps to larger monitor instead of overflowing
Originally reported at https://gitlab.com/inkscape/inbox/issues/801 (by me, found accidentally, using the Inkscape Document Properties Dialog).
Steps to reproduce
- Have two monitors (of different heights, the shorter one should be primary)
- Open a window so that it is entirely within the monitor with shorter height.
- Increase the size of a widget/the window so the window would be taller than the monitor height.
Example script with just a button that changes its own size_request to be larger than the screen: height.c
A real case (where the application wouldn't explicitly set a new size) would be with the GtkExpander (e.g. in the Document Properties Dialog in Inkscape, see linked issue)
Current behavior
The window jumps to the larger monitor if it is large enough to fully contain the window. If not, it just stays in the same window.
Exception if the window is already slightly outside of the monitor.
Expected outcome
The window stays in place and doesn't jump to the larger monitor. Not 100% sure this is undesired behavior (I don't desire it, but no one else complained, but this probably doesn't occur often in reality).
Version information
- 3.22.30-1ubuntu4
- Linux Mint 19.1
Also occurs in gtk2 (2.24.32-1ubuntu1) based off behavior in inkscape 0.92.x (which uses gtk2/gtkmm2)