Bug 397215

Summary: Visual bug around buttons of window decoration
Product: [Plasma] Breeze Reporter: Patrick Silva <bugseforuns>
Component: window decorationAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: REPORTED ---    
Severity: normal CC: f4tmike, jsardid, kde, matejm98mthw, nate, piotr.mierzwinski, sebastian.pb31, trmdi
Priority: NOR    
Version: 5.17.90   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: when display scaling factor is 1.2
no change in display scaling factor
screenshot of Plasma 5.18 beta

Description Patrick Silva 2018-08-06 14:16:39 UTC
Created attachment 114328 [details]
when display scaling factor is 1.2

See the screenshots.
I can reproduce easily maximizing/unmaximizing the desktop settings window some times in sequence.

Arch Linux
Plasma 5.13.4
frameworks 5.48
Qt 5.11.1
Comment 1 Patrick Silva 2018-08-06 14:17:51 UTC
Created attachment 114329 [details]
no change in display scaling factor
Comment 2 David Edmundson 2018-08-06 17:10:45 UTC
Both look pretty broken

X or wayland?
Comment 3 Patrick Silva 2018-08-06 18:26:44 UTC
X11. I have never seen this bug under Wayland.
Comment 4 Patrick Silva 2018-09-16 14:10:31 UTC
Same bug in plasma 5.14 beta.
Comment 5 Patrick Silva 2018-10-17 20:29:23 UTC
Now I see the same bug on Wayland after change fonts DPI to 120.

Operating System: Arch Linux 
KDE Plasma Version: 5.14.1
Qt Version: 5.12.0 beta2
KDE Frameworks Version: 5.51.0
Comment 6 Vlad Zahorodnii 2018-11-28 09:56:03 UTC
*** Bug 401492 has been marked as a duplicate of this bug. ***
Comment 7 avlas 2018-11-28 14:58:21 UTC
The only workaround I could find so far for this issue is using xorg's intel driver (instead of kernel's) and enable uxa instead of sna as accelmethod (in /etc/X11/xorg.conf.d/20-intel.conf):

Section "Device"
    Identifier "Intel Graphics"
    Driver "intel"
    Option "AccelMethod" "uxa"
EndSection
Comment 8 Patrick Silva 2019-02-23 19:38:51 UTC
It's still happening on X11 even when fractional display scaling is not used.

Operating System: Arch Linux 
KDE Plasma Version: 5.15.1
KDE Frameworks Version: 5.55.0
Qt Version: 5.12.1
Kernel Version: 4.20.11-arch2-1-ARCH
Comment 9 Christoph Feck 2019-03-12 09:16:21 UTC
I also get this bug since I switched from intel driver to modesettings driver for X11. Doesn't this imply the bug is in the modesettings driver?
Comment 10 Patrick Silva 2019-04-13 16:27:48 UTC
On my system the problem is even worse when I use intel driver instead of modesetting driver.

Operating System: Arch Linux 
KDE Plasma Version: 5.15.4
KDE Frameworks Version: 5.57.0
Qt Version: 5.12.2
Kernel Version: 5.0.7-arch1-1-ARCH
Comment 11 trmdi 2019-06-27 16:12:42 UTC
(In reply to avlas from comment #7)
> The only workaround I could find so far for this issue is using xorg's intel
> driver (instead of kernel's) and enable uxa instead of sna as accelmethod


Another one confirmed this: https://www.reddit.com/r/kde/comments/c5taoz/does_anyone_know_how_to_get_rid_of_this_bug/es6hmk2?utm_source=share&utm_medium=web2x
Comment 12 trmdi 2019-09-16 17:07:26 UTC
*** Bug 411977 has been marked as a duplicate of this bug. ***
Comment 13 TYY331 2019-09-19 23:23:41 UTC
Tried uxa with the Intel driver (using both DRI 2 and 3), problem persists on a HD 4400
Comment 14 Patrick Silva 2019-12-09 23:41:51 UTC
*** Bug 414989 has been marked as a duplicate of this bug. ***
Comment 15 TYY331 2020-01-01 01:30:40 UTC
I have finally found a workaround, if you enable the FPS counter effect the bug is gone while the effect is active.
Btw if you want to trigger the bug in the first place you have to trigger a GPU workload, this is easy to do with a GPU benchmark tool, I use Unigine heaven for testing, once the benchmark is running, open any window and move it around, the bug is triggered every time.
Having the FPS counter effect enabled prevent the glitch from appearing.
I'm using the modesetting driver, i haven't tested it with the Intel driver yet.
Comment 16 Patrick Silva 2020-01-28 21:07:49 UTC
Created attachment 125502 [details]
screenshot of Plasma 5.18 beta

Operating System: Arch Linux 
KDE Plasma Version: 5.17.90
KDE Frameworks Version: 5.66.0
Qt Version: 5.14.1
Comment 17 Patrick Silva 2020-01-29 00:46:17 UTC
*** Bug 413084 has been marked as a duplicate of this bug. ***
Comment 18 Patrick Silva 2020-09-22 16:10:00 UTC
*** Bug 426831 has been marked as a duplicate of this bug. ***