Bug 396201 - MinimizeAll kwin script does not restore focus and alt+tab ordering
Summary: MinimizeAll kwin script does not restore focus and alt+tab ordering
Status: RESOLVED INTENTIONAL
Alias: None
Product: kwin
Classification: Plasma
Component: scripts (other bugs)
Version First Reported In: 5.13.2
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-07-05 12:39 UTC by Till Schäfer
Modified: 2018-07-05 16:20 UTC (History)
0 users

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 Till Schäfer 2018-07-05 12:39:06 UTC
I am using the MinimizeAll kwin script and have assigned a shortcut to it. The windows get minimized with the first call and restored with a second call. However, after restoration, the focus of the last window is lost. To be more precise, there is now window with an active window decoration. Furthermore, the alt+tab ordering is not restored. Thus, alt+tab shows the windows in a random order (its stable and independant from the previous ordering)

I am using kwin_x11 with xorg-server 1.19.5.
Comment 1 Till Schäfer 2018-07-05 12:41:34 UTC
further info about the software stack:
- frameworks 5.47
- qt 5.11.1
- xf86-video-intel-2.99.917_p20180214-r1
Comment 2 Martin Flöser 2018-07-05 16:06:21 UTC
I'm sorry but the script does what it says: it minimized all windows and unminimizes them again. As soon as a window gets minimized it makes it impossible to restore the focus.

What you are looking for is the show desktop functionality which keeps state. The minimize all script was added for those users who prefer minimize all instead of show desktop. Due to that it does exactly that.
Comment 3 Till Schäfer 2018-07-05 16:20:47 UTC
ok, thx 4 info