Bug 455170

Summary: "Maximization" visual effect briefly appears *above* window when moving window away from activation point at top of screen
Product: [Plasma] kwin Reporter: Adam Fontenot <adam.m.fontenot+kde>
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: nate
Priority: NOR    
Version First Reported In: 6.0.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 6.2.0
Sentry Crash Report:
Attachments: screen recording of the problem

Description Adam Fontenot 2022-06-12 01:37:35 UTC
Created attachment 149627 [details]
screen recording of the problem

SUMMARY

When using the top screen edge to maximize a window, an effect is used to indicate to the user that the window will be maximized if they release the mouse button. This looks like a kind of partially transparent dark rectangle that starts behind the window and expands to fill the screen. However, if the user decides not to maximize the window, and instead moves the cursor away from the top edge of the screen while continuing to keep the mouse button held, the transparent effect will quickly fade away - but while it is doing so, it will appear *on top* of the window, causing a brief undesirable "flash". on the window.

A screen recording clearly showing the issue if you step frame by frame is attached.

STEPS TO REPRODUCE
1. Make sure the top screen edge is set to maximize dragging windows (Workplace Behavior > Screen Edges in System Settings).
2. Drag a window to the top of the screen and hold it there.
3. While continuing to hold the window, move it away from the top edge.

OBSERVED RESULT

The moment that the maximization will no longer occur if the mouse button is released, the effect starts to fade. At that same moment, the effect (a dark transparent rectangle) appears *above* the window held by the mouse, whereas before it appeared below that window.

EXPECTED RESULT

The effect fades away, while remaining below the held window.

SOFTWARE/OS VERSIONS
Linux: Arch Linux x86_64 (kernel version 5.17.8)
KDE Plasma Version: 5.24.5
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4

ADDITIONAL INFORMATION

Only tested on X11. Graphics processor is integrated Intel chip, on the Mesa driver.
Comment 1 Nate Graham 2022-06-14 15:16:34 UTC
Can reproduce on Wayland too. It's more obvious with a dark color scheme.
Comment 2 Adam Fontenot 2024-03-04 21:08:02 UTC
Tested and reproduced on 6.0.0.
Comment 3 Adam Fontenot 2024-08-03 21:39:02 UTC
I no longer observe this under Wayland. Was it deliberately fixed on both Wayland and X?
Comment 4 Vlad Zahorodnii 2024-10-02 12:22:21 UTC
yes