qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.51k stars 2.99k forks source link

There is no check to prevent the plugin manager from opening offscreen #46781

Open AlisterH opened 2 years ago

AlisterH commented 2 years ago

What is the bug or the crash?

When opening at least some dialogs, such as the main Options dialog, it seems that something detects if they are opening offscreen and moves them onto the screen. When opening the plugin manager there is no such check. This can be a problem when there are changes to screen geometry/layout.

Steps to reproduce the issue

The easiest way to demonstrate the problem is:

Versions

Tested just now on QGIS 3.22.2, but this is a longstanding issue on Windows. I expect it won't occur in many Linux environments as the window manager will ensure the dialog is on-screen.

QGIS version 3.22.2-Białowieża QGIS code revision 1601ec46d0 Qt version 5.15.2 Python version 3.9.5 GDAL/OGR version 3.4.0 PROJ version 8.2.0 EPSG Registry database version v10.038 (2021-10-21) GEOS version 3.10.0-CAPI-1.16.0 SQLite version 3.35.2 PDAL version 2.3.0 PostgreSQL client version 13.0 SpatiaLite version 5.0.1 QWT version 6.1.3 QScintilla2 version 2.11.5 OS version Windows 10 Version 2009

Active Python plugins AnotherDXF2Shape 1.2.3 AutoLayoutTool 1.1 batchvectorlayersaver 0.9 BulkVectorExport 1.1 changeDataSource 3.1 DataPlotly 3.8.1 deactivate_active_labels 0.5 FlowEstimator 0.21 flowTrace 1.1.1 Generalizer3 1.0 GeoCoding 2.18 geo_sim_processing 1.2.0 getthemfiltered 0.1.3 gridSplitter 0.4.0 GroupStats 2.2.5 HideDocks 0.6.1 ImageServerConnector 2.1.1 ImportPhotos 3.0.3 joinmultiplelines Version 0.4.1 karika 1.5 LayerBoard 1.0.1 linz-data-importer 2.2.3 loadthemall 3.3.0 MagicWand-master 1.3.1 MemoryLayerSaver 4.0.4 mmqgis 2021.9.10 nominatim_locator_filter 0.2.4 numericalDigitize 0.4.6 pathfinder version 0.4.1 plaingeometryeditor 3.0.0 plugin_reloader 0.9.1 powerpan 2.0 processing_saga 0.5.0 processing_taudem 3.0.0 processing_whitebox 0.14.0 profiletool 4.2.1 qchainage 3.0.1 QCopycanvas 0.5 qgis-plugin-findreplace-main 1 Qgis2threejs 2.6 QGIS3-getWKT 1.4 QuickMultiAttributeEdit3 version 3.0.3 QuickPrint 3.6.1 quicksaveqml 0.1.5 rasmover-master version 0.2 redLayer 2.2 selectThemes 3.0.1 simple_tools 0.4.1 splitmultipart 1.0.0 SplitPolygonShowingAreas 0.13 statist 3.2 valuetool 3.0.15 ViewshedAnalysis 1.7 WaterNetAnalyzer-master 1.7 grassprovider 2.12.99 processing 2.12.99 sagaprovider 2.12.99 autoSaver 2.6 CalculateGeometry 0.6.4 numerator 0.2 quick_map_services 0.19.27 themeselector 3.2.2 volume_calculation_tool 0.4

Supported QGIS version

New profile

Additional context

This would be particularly bad for someone unlucky enough to have one of those infamous computers where the screen order changes randomly every time they boot!

sickel commented 2 years ago

Just a comment for a quick workaround if this happens: The window is active and may be closed by pressing Esc - when restarting qgis, the dialog will come up again onscreen (at least does for me, win 10, qgis 3.22) If one needs to access the dialog without restarting qgis, press Alt-space. This gives the window menu, select move and use the arrow keys to move the dialog and hopefully get it back onscreen. - But the root issue, that the dialog can end up outside the windown, still should be fixed. (This happens to me when I use my laptop connected to a docking with multi-monitor setup and detaches it - if I have not kept everything qgis on the main screen)