Bug 502574

Summary: Maximized window minimizes to the wrong screen's Task Manager widget
Product: [Plasma] kwin Reporter: Nate Graham <nate>
Component: multi-screenAssignee: KWin default assignee <kwin-bugs-null>
Status: REPORTED ---    
Severity: normal CC: kdedev
Priority: NOR Keywords: multiscreen
Version First Reported In: master   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Nate Graham 2025-04-08 17:32:32 UTC
This is the world's most minor, inconsequential bug. Seen on git master with Qt 6.8.2.


STEPS TO REPRODUCE
1. Have two screens (in my case, laptop plus USB-C+DP monitor
2. Create a new default panel on the second screen; now both screens should have a Task Manager widget
3. Move a window to the second screen
4. Minimize it -> it gets sucked into that screen's Task Manager; GOOD
5. Restore the window and then maximize it
4. Minimize it again -> it gets sucked into the other screen's Task Manager; BAD
Comment 1 TraceyC 2025-04-09 19:42:23 UTC
I can't reproduce this on git-master with Qt 6.8.3
Laptop - primary
External monitor - secondary

The app needs to not be pinned to the task manager, I used Kalk
With a default panel on the monitor, when I minimize the app, I see it on both the monitor and laptop displays in their taskbars
Do you have the task managers both set to "Show only tasks: From current screen"? I tested with this setting and it did the right thing
When adding a default panel, I saw the task manager by default has  that unchecked

I tried setting the task manager on one display to "From current screen", and then both. They behaved as I expected
Comment 2 Nate Graham 2025-04-11 19:37:12 UTC
Right, I forgot about that. Details about the panel on the external screen:
- It does have "Show only tasks: From current screen" checked
- It has some apps pinned to it, not sure if that;s relevant
- It's on a very thicccc auto-hide panel, not sure if that's relevant