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

Mouse cursor incorrectly scaled after display switch on high DPI system

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.6.0, 6.6.1
    • GUI: High-DPI, QPA: X11/XCB
    • None
    • Linux (Pop!_OS 22.04)
      X11 (xorg)
      Display running at a high DPI resolution where scaling is needed for a usable experience.
    • Linux/X11

    Description

      I'm using a machine running Linux (Pop!_OS 22.04) with X11 on a HiDPI display (4k, fractional scaling), and this machine is on a KVM.

      When I start up any Qt 6 application, the mouse cursor appears at its normal and correctly scaled size.

      If I use the KVM to switch to another machine, and then back, the mouse cursor suddenly becomes super-tiny.  I've attached screenshots showing this problem in Qt Creator, both before and after switching displays.  (I can reproduce this in my own Qt 6 apps as well.)

       

      In the comments to QTBUG-98720, I recently learned that Ilya Fedin is quite familiar with the likely root cause of this issue, and has attempted to submit the following changes to fix it in the past:

      https://codereview.qt-project.org/c/qt/qtbase/+/427313
      https://codereview.qt-project.org/c/qt/qtbase/+/417817

       

      Attachments

        For Gerrit Dashboard: QTBUG-124303
        # Subject Branch Project Status CR V

        Activity

          People

            liaqi Liang Qi
            dkonigsberg Derek Konigsberg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews