Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.9.8, 5.12.4, 5.13.0
-
None
-
Linux, XCB
Description
Similar to QTBUG-58329. the patch I wrote for fixing that issue in 5.8 finally has conflicts and I can't fix them. So I'm reporting again to see the remaining issues fixed.
Steps to reproduce:
- Connect two screens to a computer, preferably a bigger one on the right
- Set both to HighDPI (QT_SCREEN_SCALE_FACTORS=2;2)
- Open a Qt application on the secondary (right) screen (tested with Qt Creator)
- Right-click to open a context menu
Expected results:
The context menu shows under the mouse, as it does on the left screen
Actual results:
Context menu appears to the left. If the mouse click was within the left screen's size (in physical pixels) inside the right screen, the menu is shown at the edge of the left screen. If the click was further to the right than the left screen's size, the menu is shown in the right screen, but offset from the actual click position by the left screen's size.
Additional information:
qtdiag reports:
Screens: 2, High DPI scaling: active # 0 "eDP1" Depth: 24 Primary: yes Manufacturer: Sharp Corporation Model: Serial number: Geometry: 1600x900+0+0 (native: 3200x1800+0+0) Available: 1600x900+0+0 Virtual geometry: 3520x1080+0+0 Available: 3520x1080+0+0 2 virtual siblings Physical size: 290x170 mm Refresh: 59 Hz Power state: 0 Physical DPI: 140.138,134.471 Logical DPI: 108.373,108.427 (native: 216.747,216.854) Subpixel_None High DPI scaling factor: 2 DevicePixelRatio: 2 Pixel density: 2 Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0 # 1 "DP1-1" Depth: 24 Primary: no Manufacturer: Dell Inc. Model: DELL P2715Q- Serial number: Geometry: 1920x1080+1600+0 (native: 3840x2160+3200+0) Available: 1920x1080+1600+0 Virtual geometry: 3520x1080+0+0 Available: 3520x1080+0+0 2 virtual siblings Physical size: 600x340 mm Refresh: 30 Hz Power state: 0 Physical DPI: 81.28,80.6824 Logical DPI: 108.373,108.427 (native: 216.747,216.854) Subpixel_None High DPI scaling factor: 2 DevicePixelRatio: 2 Pixel density: 2 Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0
The geometry for DP1-1 looks correct: 1920x1080+1600+0.
Attachments
Issue Links
- relates to
-
QTBUG-78320 [HighDPI multi-monitor Mixed screen scale factors] QCursor::setPos setting incorrect positions on non-primary monitor
- Closed
-
QTBUG-77307 [HighDPI multi-monitor Mixed screen scale factors] window frame shows with incorrect scaling
- Closed