Bug 442378 - Magic Lamp animations switching their “focal point” after connecting a second screen
Summary: Magic Lamp animations switching their “focal point” after connecting a second...
Status: CONFIRMED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-various (show other bugs)
Version: 5.24.0
Platform: Manjaro Linux
: NOR minor
Target Milestone: ---
Assignee: Eike Hein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-13 10:41 UTC by peamouth_monobasicity
Modified: 2025-03-30 15:22 UTC (History)
5 users (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 peamouth_monobasicity 2021-09-13 10:41:17 UTC
SUMMARY
Window-minimisation animations switching their “focal point” after connecting a second screen

STEPS TO REPRODUCE
1. Minimise any window and watch the animation—the window disappears into its spot in the icons-only task manager
2. Connect a second monitor/screen and enable the icons-only task manager there as well
3. Minimise any window again and watch it disappear into its spot in the SECOND SCREEN’S icons-only task manager
4. Disconnect the second monitor/screen
5. Minimise any window again and watch how there is no longer any animation

OBSERVED RESULT
– When minimising a window, Plasma would play a little animation of the window disappearing into its respective spot.
– Connecting a second screen whose desktop also contains a bottom panel (an Icons-only Task Manager), causes the “focal point” (for lack of a better word) to shift to that second screen’s bottom panel.
– The minimising animation would now be played normally, however, the window would disappear into the second screen’s panel’s icon.
– Disconnecting the second screen again, causes my Plasma to lose this “focal point” altogether and the “Scale” animation would no longer be played at all, while the “Magic Lamp” animation still works, but “sucks” the window into some seemingly random point on the top of the screen.
– Everything is back to normal after a reboot.

EXPECTED RESULT
The animation doesn’t switch its focal/reference point to the second screen’s task manager panel, but remains on the first screen.

SOFTWARE/OS VERSIONS
Windows: —
macOS: —
Linux/KDE Plasma: Manjaro Linux, Kernel 5.10
(available in About System)
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Comment 1 Karmo Rosental 2022-04-21 08:30:00 UTC
I believe my issue is related to this issue. My setup is quite simple.

I have 3 monitors. When the left screen is a default screen with a taskbar on the left side then magic lamp works always correctly.

Problem appears when I set my middle screen as default (that makes taskbar also to move to the middle monitor). Then magic lamp has a weird effect. Part of the window is pulled to the correct place but another part of the window is pulled all the way to the right. There's nothing on the right side of the middle screen or on the right screen.
Comment 2 Nate Graham 2022-04-21 16:01:26 UTC
Can I ask both of you whether you're using X11 or Wayland? And does the issue appear on the other one too?

Also, if you're on X11, are you forcing Plasma to use Qt scaling?

Finally which screen is the primary screen, and where is it physically located relative to other screens?
Comment 3 Karmo Rosental 2022-04-22 07:12:58 UTC
I'm using X11 and no Qt scaling. 

I was testing it with 2 monitors and also with only laptop screen and I never got clean magic lamp anymore. It always had different glitches depending on number of screens and position of the taskbar. Must be fresh bug since I remember it was always working correctly.
Comment 4 Karmo Rosental 2022-04-22 07:14:45 UTC
Squash minimize effect has no issues.
Comment 5 Nate Graham 2022-04-22 17:13:12 UTC
Ah, sounds like a bug with the Magic Lamp effect, then.

Are you able to reproduce the bug with Plasma 5.24?
Comment 6 Karmo Rosental 2022-04-22 19:34:56 UTC
I'm using Plasma 5.24 in Manjaro.
Effect seems to work fine when the task manager is on the leftmost screen but becomes broken when the taskbar is on any other screen. Basically that has been described in the initial post of this bug report. If I connect external display that is set as default display then taskbar moves to the external display (that is very nice!). Laptop becomes leftmost screen without any task manager and now it seems that magic lamp still wants to minimize to the laptop screen and creates a broken animation.
Comment 7 Bug Janitor Service 2022-05-07 04:34:58 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 8 Karmo Rosental 2022-05-07 09:21:37 UTC
Happens to me only when the task manager is on the left side of the 2nd or 3rd screen (middle screen or right screen depending on the setup). When task manager is on the top, bottom or right side of the screen then animation looks correct no matter on which screen it is situated. Affects also Squash minimize effect although it was a bit difficult to notice at first.
Comment 9 Ravi 2024-02-03 17:57:02 UTC
I can confirm this behaviour. I'm using two monitors (the right one is my primary one), and the lamp's "focal point" is wrong when minimizing/restoring every window. This started happening for me on plasma 6 rc 2 (kwin 5.93.0 on gentoo), using nvidia drivers (I'm using version 550.40.07, but this happens on every driver version). On wayland this problem DOESN'T happen
Comment 10 D. Debnath 2025-03-30 15:22:01 UTC
Not sure if I should open a separate bug (which is related to the logic of "focal point" of the magic lamp effect).

My understanding is that the expected correct behavior of the minimize effect (whether Magic Lamp or the default Squash effect) is that it should animate the window into the task manager entry.

But what if you don't have any task manager on any panel? Or (my actual issue) what if you have a specific application on which you have applied the "Skip taskbar" window rule?

The issue is that there is inconsistent behaviour between the Magic Lamp effect and the default Squash effect when handling this situation (only for that specific application without a task manager entry).

Squash: Don't animate at all i.e. just immediately hide the window without any animation.
Magic Lamp: Do the lamp effect and hide the window into the mouse pointer (the "focal point"), wherever the mouse pointer might be!

I want the Magic Lamp to also not animate at all and immediately hide the window, making its behaviour consistent with the Squash effect.