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.35k stars 2.98k forks source link

Mouse pointer position wrong with dual 4K screens that have different scaling #56951

Open zoltanszecsei opened 5 months ago

zoltanszecsei commented 5 months ago

What is the bug or the crash?

Mouseclick activates at a position different from where the pointer is visible on the screen

Steps to reproduce the issue

Set up a dualscreen (extended mode) windows 11 system (in my case 4K 17" laptop with a 4K 28" monitor via HDMI) Set laptop screen to 150% scaling and 28" monitor to 125% scaling. Fire up QGIS and load (say) 4-5 maps - move to 28" monitor. Clicking between the maps works fine. Leave kyb/mouse/ untouched for 5-10 minutes When you now click on a map in the layer panel, it activates a map higher in the layer list.

To fix, simply drag the QGIS window to and back from the Laptop monitor - and everything works fine until you leave the system idle for "a time".

Versions


Why does Windows 10 2009 show up below? My Windows is 11 Pro v 23H2 Installed 2023/05/18 OS Build: 22631.3296 Windows Feature Experience Pack 1000.22687.1000.0


QGIS version 3.36.0-Maidenhead QGIS code revision 09951dc0 Qt version 5.15.3 Python version 3.9.18 GDAL/OGR version 3.8.4 PROJ version 9.3.1 EPSG Registry database version v10.098 (2023-11-24) GEOS version 3.12.1-CAPI-1.18.1 SQLite version 3.41.1 PDAL version 2.6.0 PostgreSQL client version 16.1 SpatiaLite version 5.1.0 QWT version 6.1.6 QScintilla2 version 2.13.4 OS version Windows 10 Version 2009

Active Python plugins ale 1.3 citydb-tools 0.8.7 LAStools 2.1.0 Qgis2threejs 2.7.3 rvt-qgis 0.9.6 open_lidar_tools 2.2.2 segment_reshape_plugin 0.1.6 db_manager 0.1.20 grassprovider 2.12.99 MetaSearch 0.3.6 processing 2.12.99

Supported QGIS version

New profile

Additional context

Could this be related to #53898 ??

I am not sure why it needs some "quiet time" before the mouse pointer is affected. I have all power saving setting: Screen & Sleep: 10 mins on Battery, never when plugged in. Power mode: Full performance Battery Saver turn on at 30% - but I always use it plugged in.

My HW is: Device name Zol7780 Processor 13th Gen Intel(R) Core(TM) i9-13950HX 2.20 GHz Installed RAM 128 GB (128 GB usable) Device ID 58581D46-EEFD-4D67-9093-4CFA28326395 Product ID 00355-60911-67460-AAOEM System type 64-bit operating system, x64-based processor Pen and touch No pen or touch input is available for this display Device name Zol7780 Processor 13th Gen Intel(R) Core(TM) i9-13950HX 2.20 GHz Installed RAM 128 GB (128 GB usable) Device ID 58581D46-EEFD-4D67-9093-4CFA28326395 Product ID 00355-60911-67460-AAOEM System type 64-bit operating system, x64-based processor Pen and touch No pen or touch input is available for this display NVIDIA RTX 5000 Ada Generation Laptop GPU

I alterantely use a Dell 27" monitor at home and an AOC 28" iat the office. Same thing happens with both monitors.

jbp35 commented 3 months ago

This is probably related to this issue: https://github.com/qgis/QGIS/issues/54116

@nyalldawson @nirvn I suspect that QGIS canvas cursor is not high DPI aware but I am not familiar with this part of the code.