Bug 466247 - Minimize and maximize shortcuts for window stopped working
Summary: Minimize and maximize shortcuts for window stopped working
Status: RESOLVED WORKSFORME
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: 5.27.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2023-02-22 16:31 UTC by JonnyRobbie
Modified: 2023-08-06 16:06 UTC (History)
3 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 JonnyRobbie 2023-02-22 16:31:01 UTC
SUMMARY
Window minimization and maximization stopped working with shortcuts

STEPS TO REPRODUCE
1. Go to Settings-Shortcuts-KWin-Minimize Window
2. Add a shortcut (ie. Meta+PgDown)
3. Press meta+pgdown

OBSERVED RESULT
Nothing

EXPECTED RESULT
Minimized window

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Arch
(available in About System)
KDE Plasma Version: 5.27.1
KDE Frameworks Version: 5.103
Qt Version: 5.15.8

ADDITIONAL INFORMATION
This seems like a regression in .1 - I think it worked in 5.27
Comment 1 Nate Graham 2023-02-22 18:23:24 UTC
Are other global shortcuts all broken too?

Are you using Wayland or X11?

If Wayland, I wonder if this could have been a regression from https://invent.kde.org/plasma/plasma-workspace/-/commit/7e4159e46f816dc65ac62eae37b15c882f0c8064, though it's currently working for me on git master.
Comment 2 JonnyRobbie 2023-02-22 19:20:48 UTC
Yes, it's wayland. Thought it's interesting, because most of the kwin shortcuts doesn't work, but some of the shortcuts do work - so it's not like all of the global shortcuts stopped working completely.

work
move mouse to center: meta+f6
mouse to focus: meta+f5
show desk grid: ctrl+f8
toggle present all: alt+tab
toggle present current desk/window: ctrl+f9/f7
toggle tiles: meta+t
zoom in/out: meta+=/-

don't work
close window: alt+f4
kill window: ctrl+alt+esc
maximize: meta+pgup
minimize: meta+pgdn
switch to desktop x: ctrl+fx
quick tile u+b+l+r: meta+down/up/left/right
swithc to window above, bellow, left, right: meta+alt+u/d/l/r
toggle invert/on window: meta+ctrl+i/u
toggle mouse click effect: meta+*
walk through wins/reverse: ctrl+alt+tab/alt+shift+backtab (ok, hold on a minute - backtab?)
walk through wins current app/reverse: alt+`/~
window operations menu: alt+f3
Comment 3 Nate Graham 2023-02-22 21:28:40 UTC
Seems like the shortcuts that work all come from scripts and effects, while the broken ones are built into KWin.
Comment 4 Vlad Zahorodnii 2023-02-22 21:57:04 UTC
If you remove .config/kglobalshortcutsrc and reboot, do kwin shortcuts work?

mv ~/.config/kglobalshortcutsrc ~
reboot
Comment 5 JonnyRobbie 2023-02-22 22:31:45 UTC
Hm, yes, moving away the old global shortcuts config worked around the issue and all the default shortcuts are now working. It wouldn't be a massive issue for me to leave it as I didn't have that many custom shortcuts anyway, but what could be the cause?
Comment 6 Andrew Shark 2023-08-06 16:06:52 UTC
While not answering to question why the config of JonnyRobbie became broken, I will close it, as it works for me.

Operating System: Arch Linux 
KDE Plasma Version: 5.27.7
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Graphics Platform: Wayland