Bug 444176 - Key strokes are propagated to window contents while resizing/moving window by keyboard only
Summary: Key strokes are propagated to window contents while resizing/moving window by...
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.23.1
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
: 465390 (view as bug list)
Depends on:
Blocks:
 
Reported: 2021-10-21 08:54 UTC by Nico Dorn
Modified: 2023-02-07 08:51 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
X11Client patch (599 bytes, patch)
2021-10-27 06:44 UTC, n.parkanyi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nico Dorn 2021-10-21 08:54:42 UTC
SUMMARY
If one tries to resize/move a window only by using the keyboard, the key strokes are propagated to the active application which runs inside the window. This is a longstanding bug (several years old).

STEPS TO REPRODUCE
1. Open Konsole.
2. Move the window only using the keyboard: Alt + F3 > More Actions > Move > Cursor keys up/down/right/left > Enter when satisfied.

OBSERVED RESULT
If you hit the up or down cursor during the moving process Konsole's history function is invoked. The Enter key to complete the action produces an new blank prompt or executes the command on the prompt.

EXPECTED RESULT
Key strokes should not be propgated to the application during moving action.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.23
KDE Plasma Version: 5.23.1
KDE Frameworks Version: 5.87.0
Qt Version: 5.15.3
Kernel Version: 5.11.0-38-generic (64-bit)
Graphics Platform: X11
Comment 1 n.parkanyi 2021-10-27 06:44:01 UTC
I stumbled upon this recently as well, it only happens in X11.
Changing X11Client to always grab the keyboard during resize/move
(see attached diff), fixes this...but with the undesirable side effect
that Qt widgets appear "unfocused" whenever you move/resize a window.
Comment 2 n.parkanyi 2021-10-27 06:44:46 UTC
Created attachment 142932 [details]
X11Client patch
Comment 3 Vlad Zahorodnii 2021-10-27 07:18:51 UTC
see also https://invent.kde.org/plasma/kwin/-/merge_requests/90
Comment 4 Vlad Zahorodnii 2023-02-07 08:51:15 UTC
*** Bug 465390 has been marked as a duplicate of this bug. ***