Bug 445671 - After changing the "Overview" shortcut or adding an additional one, pressing that shortcut twice to end the effect doesn't work until KWin is restarted
Summary: After changing the "Overview" shortcut or adding an additional one, pressing ...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-overview (other bugs)
Version First Reported In: 5.23.3
Platform: Arch Linux Linux
: NOR minor
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-18 04:00 UTC by Jin Liu
Modified: 2024-08-12 06:14 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jin Liu 2021-11-18 04:00:10 UTC
SUMMARY
In the "overview" effect, Pressing the default hotkey (Ctrl-Meta-D) again ends the effect. (The same behavior as in "present windows" and "desktop grid") However, if I change the hotkey to Meta-Q, pressing it again in the effect doesn't end the effect. Instead a "q" is entered in the search box.

STEPS TO REPRODUCE
1. Enable "overview" effect.
2. Change the hotkey to Meta-Q.
3. Press Meta-Q to enter overview.
4. Press Meta-Q again.

OBSERVED RESULT
A "q" appears in the search box.

EXPECTED RESULT
The effect ends.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma:
(available in About System)
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Jin Liu 2021-11-19 04:14:57 UTC
The problem disappears after reboot. It only occurs between shortcut change and reboot.
Comment 2 Jin Liu 2021-11-19 04:44:54 UTC
Seems it's not about default/non-default hotkey. When I change the hotkey to Meta-Q and reboot, pressing Meta-Q twice works. Then I change the hotkey back to the default Ctrl-Meta-D, then pressing Ctrl-Meta-D twice doesn't work.
Comment 3 Nate Graham 2021-11-22 16:24:38 UTC
Seems to be fixed in the git master version; It's working for me now with Meta+W uses to activate it. I can press that twice to both activate and close it.
Comment 4 Jin Liu 2021-11-24 05:42:08 UTC
I can reproduce it in the lastest Neon docker image:
https://hub.docker.com/layers/kdeneon/plasma/unstable/images/sha256-87c661b4a39bdeb66b1bd27e888e658c954518c21a33e2e182b868c141dcefc8?context=explore
Assume it's quite close to the git master?

Steps:
1. Run neondocker.
2. Open systemsettings.
3. In display settings, re-enable OpenGL detection.
4. In "Desktop Effects", Enable the Overview effect.
5. Press the default hotkey Ctrl-Meta-D twice. Works.
6. In "Desktop Effects" - "Overview", Change the "Global" hotkey to Meta-M.
7. Press Meta-M twice. A "m" appears in the search box.
Comment 5 Jin Liu 2021-11-24 05:43:34 UTC
Sorry. Missing a step in last comment:
3.5: Press Alt-Shift-F12 to enable composition.
Comment 6 Jin Liu 2022-01-14 05:59:40 UTC
Tested in 5.24 beta, in both X and Wayland session. Still the same problem: The hotkey settings when boot up works OK. But if you change to another hotkey, it won't work (pressing twice) until the next reboot.
Comment 7 Nate Graham 2022-01-14 17:09:36 UTC
Can confirm that.
Comment 8 fanzhuyifan 2024-08-12 05:59:54 UTC
Cannot reproduce on git master (6.1.80), wayland, arch linux. After assigning a shortcut to overview, pressing it twice opens and then closes overview.

Note that BUG 491123 tracks the issue specific to x11.

Can you still reproduce this on plasma 6.1?
Comment 9 Jin Liu 2024-08-12 06:14:24 UTC
(In reply to fanzhuyifan from comment #8)
> Cannot reproduce on git master (6.1.80), wayland, arch linux. After
> assigning a shortcut to overview, pressing it twice opens and then closes
> overview.
> 
> Note that BUG 491123 tracks the issue specific to x11.
> 
> Can you still reproduce this on plasma 6.1?

Can't reproduce in 6.1.4, both Wayland and X11.