Bug 456553 - Dragged windows that scale down don't smoothly transform back to their original size
Summary: Dragged windows that scale down don't smoothly transform back to their origin...
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: effects-overview (other bugs)
Version First Reported In: 5.25.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-10 16:25 UTC by indecisiveautomator
Modified: 2022-09-19 18:58 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 5.26
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description indecisiveautomator 2022-07-10 16:25:37 UTC
SUMMARY
Dragging a window up in the Overview effect to make it smaller (as if you were dragging it onto a virtual desktop) and letting go causes the window to move down to its original position, but then suddenly snaps back to its original size instead of smoothly scaling back to that size.

STEPS TO REPRODUCE
1. Open Overview effect
2. Drag a window up towards virtual desktops list
3. Let go of window
4. Window will move back but won't smoothly transform back to its correct size, instead sharply going back to its original size with no animation

OBSERVED RESULT
Window suddenly snaps back to its original size when let go

EXPECTED RESULT
Window should smoothly animate back to its original size (I believe it did this in 5.24)


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.18.10-zen1-1-zen (64bit)
KDE Plasma Version: 5.25.2
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.5

ADDITIONAL INFORMATION
Tested on Wayland, have not tried X11
Comment 1 Nate Graham 2022-07-28 20:42:27 UTC
Fixed by Ivan Tkachenko with https://invent.kde.org/plasma/kwin/-/commit/2bca18bc5f57e376c59598b51e738f2e27f00547.
Comment 2 indecisiveautomator 2022-09-16 15:03:05 UTC
This bug seems to have returned in the 5.26 Beta. Grabbing and dragging a window in the Overview effect, letting go, and then clicking on it to grab it again before it goes back to its original position, causes the window to appear small. 

Also, I'm not sure how to reproduce it exactly, but occasionally when refocusing windows from the Overview effect (that is, after you click a window and choose it as the window you want to focus) it will move to the front at the wrong size and then suddenly snap to the right size. So if you had Dolphin for example in a window and you clicked it, sometimes it would transition back to the foreground but it would be the wrong size and then suddenly have to snap and expand to the actual size it's meant to be.
Comment 3 Nate Graham 2022-09-16 19:03:08 UTC
That seems like a different issue. Also, how are you able to grab it while it's in motion? you must have incredible mouse skills. I can't manage to do it.
Comment 4 indecisiveautomator 2022-09-16 19:23:06 UTC
I do play a lot of games with my mouse, but I think I just didn't explain it very well :)  Actually in testing to reply, I find it difficult to reproduce on one of my higher latency monitors. My other monitors seem fine though, but it's easiest to reproduce with a window that's maximised and when its the only window on the Overview effect.

I'll also mention that I can reproduce this problem in Plasma 5.25.5, which is what I have (temporarily) rolled back to.

STEPS TO REPRODUCE
1. Open a window maximised and activate the Overview effect, probably it's easiest to do this will an isolated fullscreen window without any other applications on that display.
2. Drag the window in any direction. With my mouse I just have to give it a little tilt in any direction.
3. Grab the quickly before the window finishes transforming back to its original position.
4. You might have to start dragging the window, or you might see instantly that the window is deformed when you grab it. It is a smaller size  than it should be when grabbed.

The actual size of the window seems to vary when you grab it, but I'm not totally sure and not sure it's the most important detail.

I recorded a video, but I'm honestly not sure how "clear" it makes what I'm doing. Though I hope it will be of some help in demonstrating the glitch. This video was recorded on Plasma 5.25.5 but the behaviour is the same on Plasma 5.26 Beta which I was using when I wrote the comment.

Video: https://i.imgur.com/63p1rkV.mp4

If I can describe it any better than this, I'll do my best :)
Comment 5 indecisiveautomator 2022-09-16 19:23:30 UTC
Oh ugh I forgot to add this in the comment but if it is a separate problem I'm happy to open another issue
Comment 6 Nate Graham 2022-09-19 18:58:32 UTC
Oh, with a fullscreen window it's easier indeed. But I can't reproduce the problem in your video with the 5.26 beta. :/

Regardless, it's a different issue from the one you described here, so let's get a new bug report for it.