Bug 403372

Summary: 'MinimizeAll' only minimizes Xwayland apps/windows
Product: [Plasma] kwin Reporter: Lucia Mrenica <lucia.mrenica>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: bugseforuns, kde, lucia.mrenica
Priority: NOR    
Version First Reported In: 5.14.90   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Lucia Mrenica 2019-01-18 19:30:45 UTC
OBSERVED RESULT
If I trigger MinimizeAll (e. g. with Meta+D) native wayland apps don't minimize only apps running on Xwayland.

EXPECTED RESULT
All apps should minimize and show back up.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.14.90
KDE Frameworks Version: 5.54
Qt Version: 5.12
Comment 1 Lucia Mrenica 2019-01-18 19:32:07 UTC
Likely related to https://bugs.kde.org/show_bug.cgi?id=377213
Comment 2 Vlad Zahorodnii 2019-01-18 19:33:29 UTC
Currently, wayland clients are not exposed to scripting API (for security reasons).
Comment 3 Lucia Mrenica 2019-01-18 20:18:24 UTC
(In reply to Vlad Zagorodniy from comment #2)
> Currently, wayland clients are not exposed to scripting API (for security
> reasons).

But there is going to be a way how this could work, right?
Comment 4 Patrick Silva 2019-01-22 15:55:10 UTC
native wayland apps are minimized as expected when I use "Minimize all windows" widget
on Arch Linux running plasma 5.15 beta.
Comment 5 Lucia Mrenica 2019-01-22 16:33:53 UTC
(In reply to Patrick Silva from comment #4)
> native wayland apps are minimized as expected when I use "Minimize all
> windows" widget
> on Arch Linux running plasma 5.15 beta.

That's interesting, for me too. Why does the keyboard shortcut work differently then?
Comment 6 David Edmundson 2019-01-22 16:53:20 UTC
Widget is an applet that uses libtaskmanager (which in turn uses a special interface)

The other is a shortcut in kwin that is run via kwin scripting.

You probably could set a shortcut on the applet if you wanted a quick fix.

Long term we need to add back kwin scripting.
Comment 7 Lucia Mrenica 2019-01-22 16:58:02 UTC
(In reply to David Edmundson from comment #6)
> Widget is an applet that uses libtaskmanager (which in turn uses a special
> interface)
> 
> The other is a shortcut in kwin that is run via kwin scripting.
> 
> You probably could set a shortcut on the applet if you wanted a quick fix.
> 
> Long term we need to add back kwin scripting.

I could do that, but I would have to have this widget on my panel (which is not that big a problem) and https://bugs.kde.org/show_bug.cgi?id=403509
Comment 8 Vlad Zahorodnii 2019-11-20 16:20:22 UTC
Given that wayland clients are now exposed to the scripting api, I change the status of this bug report to RESOLVED FIXED.