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

Key repeats on closed window

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.9.1
    • Fix Version/s: None
    • Component/s: Wayland
    • Labels:
      None
    • Environment:

      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

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

          Activity

            People

            • Assignee:
              johanhelsing Johan Helsing
              Reporter:
              mgraesslin Martin Gräßlin
            • Votes:
              2 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes