Bug 431024

Summary: Minimize animation incorrect after primary display change (X11)
Product: [Plasma] plasmashell Reporter: Razathorn <raz>
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: kde, niccolo.venerandi, qydwhotmail
Priority: NOR    
Version First Reported In: 5.27.8   
Target Milestone: 1.0   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.0
Sentry Crash Report:

Description Razathorn 2021-01-01 04:06:50 UTC
If you change the primary display via the display configuration ui, or you plugin a monitor that is configured to be the primary when plugged in, the panel rightfully moves to the correct location, but the minimize and restore animation still acts like the panel is in the original location.

STEPS TO REPRODUCE
1. Plugin external monitor or change primary display via display configuration ui.
2. minimize application
3. restore application

OBSERVED RESULT
Animation makes window appear to minimize the wrong location

EXPECTED RESULT
Animation makes the window appear to minimize to the task manager on the panel where it actually resides after the change.

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux
KDE Plasma Version: 5.20.4
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.2
Kernel Version: 5.4.80-2-MANJARO
OS Type: 64-bit
Processors: 8 × Intel® Core™ i7-9700 CPU @ 3.00GHz
Memory: 31.1 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Comment 1 David Edmundson 2023-09-06 10:04:52 UTC
Can you confirm if this is still the case?
Comment 2 Bug Janitor Service 2023-09-21 03:46:09 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Razathorn 2023-09-26 17:21:31 UTC
I upgraded to latest manjaro stable which has 5.27.8 for all plasma components and reproduced the issue again.  With two monitors, start an application such as terminal, minimize the app, note that the animation shrinks the window down to the task manager.  Open display properties and change primary monitor, panel moves, now minimizing the existing terminal will shrink to where the task manager used to be, not where it has moved to.  New windows animate minimize to the new location correctly, existing windows do not.
Comment 4 Fushan Wen 2023-10-13 12:49:46 UTC
Git commit 1fae46355dbc33ed6b019ebb3c790e3bc255c8af by Fushan Wen.
Committed on 13/10/2023 at 14:48.
Pushed by fusionfuture into branch 'master'.

applets/taskmanager: refresh icon geometries on screen changed
FIXED-IN: 6.0

M  +23   -15   applets/taskmanager/package/contents/ui/main.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/1fae46355dbc33ed6b019ebb3c790e3bc255c8af