Open wonder-sk opened 6 days ago
@wonder-sk do you have any plans here?
We could start with restricting modal dialogs, like the options, to the same screen as their parent.
@nyalldawson no immediate plans... it was reported to us some time ago that QGIS windows may randomly open on wrong screens, but without clear steps to reproduce it - and yesterday I have seen it on a colleague's computer, so I thought best to at least keep track of it.
What is the bug or the crash?
For users with multiple displays, the automatic saving/restoring of geometry of various QGIS dialogs has unexpected effects: sometimes dialogs open on a wrong display. What happens is that one day user works with QGIS on screen A, so the dialogs keep their geometry for the screen A. On some other day, user opens QGIS on screen B - and various dialogs keep popping up on the screen A, although this is quite unexpected and confusing (they may not realize the dialog has opened on a different screen than the one they are currently using).
While the behavior with QWidget::saveGeometry() + QWidget::restoreGeometry() is technically correct - it uses the same screen and geometry as the last time, in practice this is arguably not very nice. It would make sense to have some kind of screen affinity to avoid this kind of issues (so windows would be forced to open on the same screen), but that could annoy users that intentionally open some QGIS windows on different screens.
Steps to reproduce the issue
Versions
QGIS master and also any 3.x release
Supported QGIS version
New profile
Additional context
No response