Bug 501145 - key is buffered if released after modifier
Summary: key is buffered if released after modifier
Status: REOPENED
Alias: None
Product: kwin
Classification: Plasma
Component: input (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-06 12:34 UTC by steve
Modified: 2025-03-21 06:39 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description steve 2025-03-06 12:34:43 UTC
SUMMARY

When using a key with a modifier, that keystroke seems to be stored in the buffer and is entered into the next window

STEPS TO REPRODUCE
1. Open at least two windows that can accept text input, e.g. Konsole and Kate
2. In Kate, hightlight some text and press Ctrl-C, but release the Ctrl key before releasing the C key
3. Click on the Konsole window

OBSERVED RESULT

Observe the letter 'c' appear in the Konsole window

EXPECTED RESULT

No character should appear in Konsole

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 41
KDE Plasma Version: 6.3.0
KDE Frameworks Version: 6.11.0
Qt Version: 6.8.2
Kernel Version: 6.12.15-200.fc41.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i7-1185G7 @ 3.00GHz
Memory: 31.1 GiB of RAM
Graphics Processor 1: Intel® Iris® Xe Graphics
Graphics Processor 2: NVIDIA T500


ADDITIONAL INFORMATION
Kate, Konsole, and Ctrl-C are just examples. I have seen it happen with Ctrl-A as well, and with other apps like Brave, Slack, etc. It does NOT happen in X11. For example, copying text from Konsole with Ctrl-Shift-C and then selecting Kate will do the same thing.
Comment 1 steve 2025-03-06 12:41:22 UTC
I can no longer reproduce this bug. Unfortunately, I don't know whether it was resolved in Plasma 6.3 or by simply installing plasma-workspace-x11. Here is more history:

- observed details of the bug as described in this bug report
- installed plasma-workspace-x11 to determine whether it can be reproduced in Wayland
- rebooted, and logged in using X11
- after login, I was greeted with the "Welcome to Plasma 6.3" window
- filed the bug report
- logged out and back in using Wayland
- bug no longer occurs

I will try uninstalling plasma-workspace-x11 to see what that may do.
Comment 2 steve 2025-03-06 12:47:13 UTC
After uninstalling plasma-workspace-x11 I still cannot reproduce the bug. This seems to point to the bug having been fixed in version 6.3. I should also mention that the version details I posted are probably not correct since updates were apparently applied between the last time I saw the bug and the time I reported it. My sincere apologies for the inaccuracy.
Comment 3 cwo 2025-03-06 13:17:14 UTC
I can't reproduce this either on master.

I don't think it makes sense to keep this bug open if it's no longer reproducible - it may be fixed or just have been a temporary thing somehow. Please reopen if the issue reappears.
Comment 4 steve 2025-03-21 06:39:55 UTC
I can now reproduce this reliably. I'm not sure what made the problem go away for a short time, but perhaps it was some remnant of x11 having been installed.