Bug 502574 - Maximized window minimizes to the wrong screen's Task Manager widget
Summary: Maximized window minimizes to the wrong screen's Task Manager widget
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: multi-screen (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: multiscreen
Depends on:
Blocks:
 
Reported: 2025-04-08 17:32 UTC by Nate Graham
Modified: 2025-04-11 19:37 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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