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

Mouse button kept pressed state after closing the window in mouse press handler

XMLWordPrintable

    • Linux/Wayland
    • 409d1080f2 (qt/qtwayland/dev) 5288fc2c68 (qt/tqtc-qtwayland/5.15) d66f01e2d7 (qt/qtwayland/6.3) 922503fd46 (qt/qtwayland/6.2) 922503fd46 (qt/tqtc-qtwayland/6.2) d66f01e2d7 (qt/tqtc-qtwayland/6.3) 5288fc2c68 (qt/tqtc-qtwayland/5.15.9)

      In some cases, the mouse release message is not received.

       

      Reproduce way

      Run the demo, window A appears
      The button in the middle of the window, window B appears
      Left mouse click on window B, window B will disappear
      Move the mouse over window A
      Observe the print information, the "Left Button is pressed on MouseMove appears"

       

      At this time, we did not press the mouse, but during the mouseMove process, it was displayed that the left mouse button was pressed.

       

      I added printing information to QWaylandInputDevice::Pointer::pointer_button and I only see mouse down events, no mouse release events.

       

      This can reproduce it in KWIN and Weston.

       

       

       

        1. 20220217104740.gif
          20220217104740.gif
          1.49 MB
        2. example-gtk4.c
          2 kB
        3. qt_hide_test.zip
          7 kB
        For Gerrit Dashboard: QTBUG-100942
        # Subject Branch Project Status CR V

            liaqi Liang Qi
            tanghaixiang haixiang tang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: