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

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

    XMLWordPrintable

Details

    • 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)

    Description

      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.

       

       

       

      Attachments

        1. 20220217104740.gif
          1.49 MB
          haixiang tang
        2. example-gtk4.c
          2 kB
          Liang Qi
        3. qt_hide_test.zip
          7 kB
          haixiang tang

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews