Bug 465323 - XWayland apps drawing dark pixels on rounded corners
Summary: XWayland apps drawing dark pixels on rounded corners
Status: RESOLVED DUPLICATE of bug 478080
Alias: None
Product: kwin
Classification: Plasma
Component: decorations (show other bugs)
Version: 5.27.6
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: wayland
Depends on:
Blocks:
 
Reported: 2023-02-05 15:26 UTC by Svyatoslav Timofeev
Modified: 2024-02-01 19:07 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
White pixels in transparent area (7.60 KB, image/png)
2023-02-05 15:42 UTC, Svyatoslav Timofeev
Details
Dark pixels on winecfg (23.86 KB, image/png)
2023-02-05 15:49 UTC, Svyatoslav Timofeev
Details
Video demo of the bug using Slack under Xwayland (1.33 MB, video/x-matroska)
2023-02-12 11:34 UTC, Naxdy
Details
Comparison of Xwayland window with Breeze (dark pixel) and native Wayland window with Breeze (89.39 KB, image/png)
2023-02-13 08:18 UTC, Naxdy
Details
round third party windoe decoration is filled with dark pixels (14.33 KB, image/png)
2023-07-29 17:42 UTC, kde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Svyatoslav Timofeev 2023-02-05 15:26:43 UTC
SUMMARY
***
XWayland apps, such a Discord, MEGA and Wine drawing dark pixels on rounded corners of KWin
***


STEPS TO REPRODUCE
1. Under Wayland session launch Winecfg
2. Set bright wallpaper with consistent color, such a blue sky
3. Move window header-bar to that clean color
4. Unfocus Winecfg

OBSERVED RESULT
Rounded corners in theme like Breeze drawing dark pixels in transparent area if XWayland application is unfocused

EXPECTED RESULT
As on X11 - X-apps drawing fully transparent pixels in rounded area

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: CachyOS (Arch Linux)
(available in About System)
KDE Plasma Version: 5.26.90
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8

AMD RX 6600 XT, With Mesa-Git drivers
Comment 1 Svyatoslav Timofeev 2023-02-05 15:42:10 UTC
Created attachment 155963 [details]
White pixels in transparent area
Comment 2 Svyatoslav Timofeev 2023-02-05 15:49:40 UTC
Created attachment 155964 [details]
Dark pixels on winecfg
Comment 3 Nate Graham 2023-02-06 23:18:43 UTC
Cannot reproduce with Discord using XWayland.
Comment 4 Svyatoslav Timofeev 2023-02-08 14:04:51 UTC
(In reply to Nate Graham from comment #3)
> Cannot reproduce with Discord using XWayland.

Set dark theme, with bright consistent wallpaper
Move XWayland window upon other application
(window content upon dark application, and headerbar upon wallpaper)

So with this action I can see dark pixels
Comment 5 Svyatoslav Timofeev 2023-02-08 14:06:58 UTC
(In reply to Nate Graham from comment #3)
> Cannot reproduce with Discord using XWayland.

The window manager on XWayland cloning background pixels from window background, but in wrong place
Comment 6 Naxdy 2023-02-12 11:34:37 UTC
Created attachment 156172 [details]
Video demo of the bug using Slack under Xwayland

Can confirm this as well. Attached a video to further showcase it.

Application: Slack
Window decorations: Sierra Breeze Enhanced
Application style: kvantum-dark
Color scheme: Dracula
Comment 7 Nate Graham 2023-02-13 01:47:28 UTC
Oh I see, you're using a 3rd-party window decoration theme. That's quite relevant.
Comment 8 Naxdy 2023-02-13 08:18:17 UTC
Created attachment 156186 [details]
Comparison of Xwayland window with Breeze (dark pixel) and native Wayland window with Breeze

No, it isn't. In the video, I'm not using an aurorae decoration, but Sierra Breeze Enhanced, which is a native decoration forked from Breeze.

Also, the dark pixel still appears in Breeze, it is just (a lot) less noticeable, because the corners aren't as rounded. Even on the zoomed-in screenshot it's very hard to detect if you're not looking for it. But this bug is very much present regardless.
Comment 9 Naxdy 2023-02-13 08:20:58 UTC
Also, not sure how relevant this is, but if using the third-party KWin effect LightlyShaders ( https://github.com/a-parhom/LightlyShaders ), which rounds all corners of a window, this problem disappears entirely (regardless of which decoration is being used), which leads me to believe that this may actually be an effect misbehaving, rather than the decorations.
Comment 10 kde 2023-07-29 17:42:24 UTC
Created attachment 160609 [details]
round third party windoe decoration is filled with dark pixels

Observed the same problem when using a rounded window decoration theme (Lavanda-Sea) with Wine applications in a Wayland session.
Comment 11 Vlad Zahorodnii 2024-02-01 19:07:21 UTC

*** This bug has been marked as a duplicate of bug 478080 ***