Bug 475507 - Only minimize windows on the current virtual desktop and activity
Summary: Only minimize windows on the current virtual desktop and activity
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Show Desktop/Minimize All (show other bugs)
Version: 5.27.8
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
: 480097 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-10-12 09:11 UTC by Timothy
Modified: 2024-08-27 16:11 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.2.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Timothy 2023-10-12 09:11:21 UTC
Sometimes a particular virtual desktop becomes a tad cluttered, and I'd like to minimise the windows currently open *on that desktop*. Currently, the "minimise all windows" applet acts across all desktops. A simple configuration checkbox to change the targetted desktops to be "all" or "current" would be a much-appreciated piece of functionality for me (and perhaps others?).
Comment 1 Nate Graham 2023-10-12 20:14:17 UTC
Maybe it should just always do this; minimizing even windows on other desktops that aren't visible doesn't make a lot of sense IMO.

Looks like this is feasible to change in MinimizeAllController.qml since it uses data from the libtaskmanager to perform the minimization, and libtaskmanager also knows about virtual desktops.
Comment 2 Timothy 2024-02-03 16:08:38 UTC
I was glad to hear this makes sense and looks like a straightforward change. Do you think there's much chance of somebody picking this up? For people with setups like mine, I think it would be a pretty good QoL improvement and I'm afraid I haven't the background/time to give this a shot myself.
Comment 3 Bug Janitor Service 2024-07-09 15:58:28 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2383
Comment 4 Nate Graham 2024-08-27 15:57:35 UTC
*** Bug 480097 has been marked as a duplicate of this bug. ***
Comment 5 Nate Graham 2024-08-27 16:11:41 UTC
Git commit 48c27d32b9ccb78a3ddc5a1ece1e2dea482e0927 by Nate Graham, on behalf of Christoph Wolk.
Committed on 27/08/2024 at 16:11.
Pushed by ngraham into branch 'master'.

applets/showdesktop: limit Minimize All by desktop/activity

The Minimize All widget currently minimizes all windows on all virtual
desktops, which is likely not what the user intended. The same, perhaps
even more counterintuitively, is true for activities.

I have changed this so that the widget now tracks the active state and
the lists of windows that it minimized (if any) separately per
activity/desktop combination. A user can now press Minimize All, do all
sorts of other things on other activities/desktops, come back to the
original desktop in the original activity, press the button again, and
have their windows restored. I think this is a significant QoL upgrade
over the existing version, where restoring will not work if the user
activated any window, even if it was on another activity or desktop. 

This is a change in default behavior with no configuration option. I think 
it's enough to do the right thing and not clutter up the UI with irrelevant
options; see also comment 1 in BUG: 475507. If desired, I can make the
behavior optional later.
FIXED-IN: 6.2.0

M  +38   -18   applets/showdesktop/package/contents/ui/MinimizeAllController.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/48c27d32b9ccb78a3ddc5a1ece1e2dea482e0927