STEPS TO REPRODUCE 1. Open KWrite. 2. Trigger "Overview" or "Present Windows". 3. Press `ESC`. 4. KWrite loses keyboard focus. The text cursor stops blinking. 5. Press any key and KWrite regains focus. SOFTWARE/OS VERSIONS Operating System: Arch Linux KDE Plasma Version: 5.91.0 KDE Frameworks Version: 5.247.0 Qt Version: 6.7.0 Kernel Version: 6.6.10-1-lts (64-bit) Graphics Platform: offscreen Processors: 12 × AMD Ryzen 5 5600H with Radeon Graphics Memory: 13.5 GiB of RAM Graphics Processor: AMD Radeon Graphics
The cursor does stop blinking or even disappears, which is a bit confusing, but is the window really losing focus if you can type into it immediately?
Can't reproduce on wayland -- the cursor keeps blinking
Are you on X11 or wayland?
(In reply to fanzhuyifan from comment #3) > Are you on X11 or wayland? I am on Wayland.
(In reply to fanzhuyifan from comment #2) > Can't reproduce on wayland -- the cursor keeps blinking Sorry, CAN reproduce on wayland following the STEPS TO REPRODUCE. I was repressing the shortcut instead of pressing escape. This also seems to show up when toggling grid view and then pressing escape.
(In reply to fanzhuyifan from comment #5) > Sorry, CAN reproduce on wayland following the STEPS TO REPRODUCE. I was > repressing the shortcut instead of pressing escape. > > This also seems to show up when toggling grid view and then pressing escape. Probably it's in any effect that grabs keyboard then doesn't activate a new window.
(In reply to fanzhuyifan from comment #5) > (In reply to fanzhuyifan from comment #2) > > Can't reproduce on wayland -- the cursor keeps blinking > > Sorry, CAN reproduce on wayland following the STEPS TO REPRODUCE. I was > repressing the shortcut instead of pressing escape. > > This also seems to show up when toggling grid view and then pressing escape. And probably pressing the shortcut works because it's a two-key action, so when you release the second key (the modifier), the app regains focus. You can try pressing both keys simultaneously and quick. It triggers the bug.
(In reply to Jin Liu from comment #7) > And probably pressing the shortcut works because it's a two-key action, so > when you release the second key (the modifier), the app regains focus. > > You can try pressing both keys simultaneously and quick. It triggers the bug. Yeah, if I do that I can sometimes trigger this.
A possibly relevant merge request was started @ https://invent.kde.org/plasma/kwin/-/merge_requests/4873
Git commit 18ba622c407564ecd84235fe8161cc37b691340e by Jin Liu. Committed on 11/01/2024 at 09:40. Pushed by genericity into branch 'master'. Update keyboard focus when exiting from a keyboard-grabbing effect M +2 -0 src/effect/effecthandler.cpp https://invent.kde.org/plasma/kwin/-/commit/18ba622c407564ecd84235fe8161cc37b691340e
Nate, I think it will be cherry-picked into 6.0? https://invent.kde.org/plasma/kwin/-/merge_requests/4876
Yep, I missed it. Changing the Fixed In version.
Git commit a5437f9af759fe1f6540e796528afaf6960a86ab by Vlad Zahorodnii, on behalf of Jin Liu. Committed on 12/01/2024 at 12:32. Pushed by vladz into branch 'Plasma/6.0'. Update keyboard focus when exiting from a keyboard-grabbing effect (cherry picked from commit 18ba622c407564ecd84235fe8161cc37b691340e) M +2 -0 src/effect/effecthandler.cpp https://invent.kde.org/plasma/kwin/-/commit/a5437f9af759fe1f6540e796528afaf6960a86ab