Bug 401680

Summary: Wobbly Windows, dual monitor, dragging a maximised windows shows weird animation
Product: [Plasma] kwin Reporter: Sin Jeong-hun <typingcat>
Component: effects-variousAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: minor    
Priority: NOR    
Version First Reported In: 5.14.3   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: When it happened.

Description Sin Jeong-hun 2018-12-03 04:32:06 UTC
SUMMARY
When I drag a maximised windows so that that window can be a smaller size, a large ghost-like big image of the window flickers on the other monitor. This is especially apparent when the wobbliness is big.

This is not a serious problem, but hey, people use wobbliness to look good, not for practical reasons. So, looking good is all that matters, and this makes it look less good.

STEPS TO REPRODUCE
1. Increase wobbliness
2. Maximise a window
3. Drag down the title bar of that window

OBSERVED RESULT
On the other monitor, a large ghost of the window flickers.

EXPECTED RESULT
I do not think the effect should be shown beyond the current monitor, when resizing a maximised window. Maybe it is better to confine the animation within the monitor, not expanding it to the other monitor.

SOFTWARE/OS VERSIONS
Windows: 
MacOS: 
Linux/KDE Plasma: Manjaro
(available in About System)
KDE Plasma Version: 5.14.3
KDE Frameworks Version: 5.52.0
Qt Version: 5.11.2

ADDITIONAL INFORMATION
Comment 1 Vlad Zahorodnii 2018-12-03 08:30:28 UTC
Huh, apparently, I didn't fix this bug completely.
Comment 2 Vlad Zahorodnii 2018-12-03 08:33:41 UTC
If you disable the Maximize effect, can you reproduce this bug?
Comment 3 Vlad Zahorodnii 2018-12-03 08:36:11 UTC
Also, please post output of
    qdbus org.kde.KWin /KWin supportInformation
Comment 4 Vlad Zahorodnii 2018-12-03 09:10:38 UTC
I can't reproduce it (on both Wayland and X11).
Comment 5 Vlad Zahorodnii 2018-12-03 09:21:49 UTC
Given the expected result, I'm not sure what you mean by "a large ghost-like big image of the window flickers on the other monitor". Does the visual artifact look like https://bugsfiles.kde.org/attachment.cgi?id=101552?
Comment 6 Sin Jeong-hun 2018-12-03 10:00:08 UTC
Created attachment 116643 [details]
When it happened.

I had tested Wobbly in a slightly older KDE last week, and the visual artefact was a lot worse (the artefact did not even disappear after the animation). This time, it was not that bad, just a minor annoyance.

The "Maximise" seems to have been enabled by default. When I turned it off, it no longer happened. Maybe you could add a warning about this in the description, like "Not to be used along with the Maximise effect"?

I had captured the "weird animation" before seeing the comment about "Maximise effect", so I will attach it. You can see a large version of the window flashes at the right corner of the left monitor. I forgot the Wobbly parameters, but with certain parameters, the flashing large window was a lot bigger.

Anyways, I think you can close this issue, as this can be solved by simply disabling "Maximise". Thank you for your help.

I am not sure if I could say this here but if you do not mind, there are really minor two additional things... (1) While wobbling, I can see some sort of seam between the title bar and the client area, as if the title bar and the client are not one piece. (2) Maybe apply anti-aliasing to the wobbling edges? It looks a little bit jaggy.
Comment 7 Vlad Zahorodnii 2018-12-03 10:07:36 UTC
(In reply to Sin Jeong-hun from comment #6)
> When it happened.
I don't see anything wrong.

> I had tested Wobbly in a slightly older KDE last week, and the visual
> artefact was a lot worse (the artefact did not even disappear after the
> animation). This time, it was not that bad, just a minor annoyance.
Prior to 5.14.1, the Maximize and the Wobbly Windows effect didn't go along
quite well.

> I had captured the "weird animation" before seeing the comment about
> "Maximise effect", so I will attach it. You can see a large version of the
> window flashes at the right corner of the left monitor. I forgot the Wobbly
> parameters, but with certain parameters, the flashing large window was a lot
> bigger.
It works as intended.

> I am not sure if I could say this here but if you do not mind, there are
> really minor two additional things... (1) While wobbling, I can see some
> sort of seam between the title bar and the client area, as if the title bar
> and the client are not one piece.
That's a known issue.