Bug 494647

Summary: Accidental data loss: Almost nuked all my Virtual Desktops in the Desktop Grid while zooming in and out
Product: [Plasma] kwin Reporter: ratijas <me>
Component: effects-overviewAssignee: KWin default assignee <kwin-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: kde, nate
Priority: LO    
Version First Reported In: 6.1.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description ratijas 2024-10-13 09:11:42 UTC
SUMMARY

Global shortcuts for KWin zoom effect  are ⌘+ and ⌘-. Meanwhile, Desktop Grid handle + and - keys to add and remove virtual desktops, disregarding and held modifiers.

Thus, trying to zoom in and out while the Desktop Grid is open leads to unintentional creation/removal of virtual desktops.


STEPS TO REPRODUCE
1. Open Desktop Grid
2. Press ⌘+, then ⌘-

OBSERVED RESULT
One additional virtual desktop is created then removed.

EXPECTED RESULT
Robust / regular shortcut handling in KWin effects instead of these ad-hoc Keys.on*Pressed solutions.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.1.5
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.3
Kernel Version: 6.11.2-arch1-1 (64-bit)
Graphics Platform: X11
Comment 1 Nate Graham 2024-10-16 13:28:35 UTC
Can't reproduce on Wayland. Virtual desktops only get created and removed with + and +, not Meta plus those keys. Seems like an X11-only bug.

That said, using modifier-less shortcuts to add and remove (especially remove) desktops in an unmmarked way isn't ideal either.
Comment 2 David Edmundson 2024-10-16 13:29:52 UTC
I reproduced on both, it matters where your focus is within Overview
Comment 3 David Edmundson 2024-10-16 17:52:21 UTC
edit, I couldn't reproduce on wayland I had a broken meta key at the time