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

Key repeats on closed window

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P2: Important
    • None
    • 5.9.1
    • QPA: Wayland
    • None
    • Plasma Wayland session with Qt 5.9.1

    Description

      When a window gets closed by a key press event, the key continues to be repeated on that window although it is no longer visible. Even after reopening the window the key still repeats and thus closes directly.

      This behavior is specific to the Wayland platform, on X11 this works correctly.

      Attached is a simple test case to demonstrate the issue.

      Steps to reproduce:
      1. qmlscene --platform wayland key-repeat.qml
      2. wait for window opened
      3. press escape

      Expected behavior:
       window closes and message "Escape pressed handler" is printed once

      Actual behavior:
       window closes and message "Escape pressed handler" starts to repeat

      For comparison do the same with --platform xcb

      Attachments

        1. key-repeat.qml
          0.5 kB
          Martin Gräßlin
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            johanhelsing Johan Helsing
            mgraesslin Martin Gräßlin
            Votes:
            2 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes