Bug 453138 - Minimize All Restores Windows in a Wrong Order
Summary: Minimize All Restores Windows in a Wrong Order
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.24.4
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-28 12:47 UTC by Peter Shkenev
Modified: 2022-05-06 14:36 UTC (History)
2 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 Peter Shkenev 2022-04-28 12:47:38 UTC
STEPS TO REPRODUCE
1. Open some overlapping windows
2. Click 'Minimize all' twice
3. Observe window order messed up

OBSERVED RESULT
Windows are placed in the wrong order (e.g. window that was behind another window is restored in front of that window)

EXPECTED RESULT
Windows are restored in the right order

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 22.04
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
Comment 1 Nate Graham 2022-05-03 17:41:39 UTC
Does the same thing happen if you minimize all windows by setting a global shortcut for the "MinimizeAll" action in System Settings > Shortcuts > KWin?
Comment 2 Peter Shkenev 2022-05-03 18:12:27 UTC
(In reply to Nate Graham from comment #1)
> Does the same thing happen if you minimize all windows by setting a global
> shortcut for the "MinimizeAll" action in System Settings > Shortcuts > KWin?

Sorry, but I cannot find this shortcut in System settings
Comment 3 Nate Graham 2022-05-04 17:34:54 UTC
Ah sorry, I forgot that you first have to enable the relevant KWin script in System Settings > Window Management > KWin Scripts. Can you enable it there, then try with the shortcut?
Comment 4 Peter Shkenev 2022-05-04 17:38:30 UTC
(In reply to Nate Graham from comment #3)
> Ah sorry, I forgot that you first have to enable the relevant KWin script in
> System Settings > Window Management > KWin Scripts. Can you enable it there,
> then try with the shortcut?

Ok, I tried it, and it apparently restores windows in the right order.
Comment 5 Nate Graham 2022-05-05 22:02:08 UTC
Thanks! Moving to KWin since the minimize/unminimize all code that the applet calls lives there.

Cannot reproduce, FWIW.
Comment 6 Peter Shkenev 2022-05-06 11:56:21 UTC
I also reproduced this bug in Artix.
Apparently it can be reproduced in X11, not in Wayland session.
Comment 7 Yaroslav Sidlovsky 2022-05-06 14:36:11 UTC
I'm able to reproduce this bug on X11 with plasma-5.24.5.

Strange that this applet just not calling KWin minimize all / restore all action via DBus (Meta+D by default, if I remember correctly),
this action restores windows in correct order.