Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-77086

Context menus mis-positioned in dual HighDPI screens

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.9.8, 5.12.4, 5.13.0
    • GUI: Window management
    • 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:

      1. Connect two screens to a computer, preferably a bigger one on the right
      2. Set both to HighDPI (QT_SCREEN_SCALE_FACTORS=2;2)
      3. Open a Qt application on the secondary (right) screen (tested with Qt Creator)
      4. 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              sorvig Morten Sørvig
              thiago Thiago Macieira
              Veli-Pekka Heinonen Veli-Pekka Heinonen
              Votes:
              3 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes