Summary: | The active window loses focus after triggering "Overview" or "Present Windows" then cancel immediately | ||
---|---|---|---|
Product: | [Plasma] kwin | Reporter: | Jin Liu <ad.liu.jin> |
Component: | general | Assignee: | KWin default assignee <kwin-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dougshaw77, fanzhuyifan, nate |
Priority: | NOR | Keywords: | qt6 |
Version: | git master | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=477885 | ||
Latest Commit: | https://invent.kde.org/plasma/kwin/-/commit/a5437f9af759fe1f6540e796528afaf6960a86ab | Version Fixed In: | 6.0 |
Sentry Crash Report: |
Description
Jin Liu
2024-01-11 02:38:45 UTC
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 |