Bug 493934 - Black Artifacts around Windows App on KDE Wayland
Summary: Black Artifacts around Windows App on KDE Wayland
Status: RESOLVED FIXED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2024-10-01 18:29 UTC by qubist-pixel
Modified: 2024-11-15 14:16 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.2.4
Sentry Crash Report:


Attachments
Black Border Around Menu (54.77 KB, image/png)
2024-10-01 18:29 UTC, qubist-pixel
Details
Black Border around Dialog (39.08 KB, image/png)
2024-10-01 18:29 UTC, qubist-pixel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description qubist-pixel 2024-10-01 18:29:15 UTC
Created attachment 174294 [details]
Black Border Around Menu

SUMMARY
A black border appears around dialog box/menus in Windows Applications running using Lutris/Wine. See the attached screenshots. This is a WPF App.

It only appears in Plasma Wayland. Plasma Xorg, Gnome Wayland or Gnome Xorg don't have this issue.

STEPS TO REPRODUCE
1. Install Lutris from flatpak
2. Download 64bit setup from here : https://ticktick.com/windows?language=en_US 
2. In Overflow Menu near Minimize Button : Add Games > Install a Windows Game from an executable > Fill in the Name > Install > Continue > Select the Setup File > Install normally without changes. Do not launch at the end.
3. Back in Lutris, Open Winetricks. Select the default wine prefix > Install a Windows DLL or Component > Select d3dcompiler_47, d3dx9, dotnet48, dxvk. Install Normally.
4. Start TickTick. Create a dummy account. 
5. Press alt + a to open Quick Add Dialog or create a new task. Or press alt + b to open widget. Or click on a cell in calendar to open new task dialog.  

OBSERVED RESULT
The dialog boxes/menu should be rendered without correctly.

EXPECTED RESULT
Black Border around dialog box/menu.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 41
KDE Plasma Version: 6.1.90
KDE Frameworks Version: 6.6.0
Qt Version: 6.7.2
Comment 1 qubist-pixel 2024-10-01 18:29:44 UTC
Created attachment 174295 [details]
Black Border around Dialog
Comment 2 David Redondo 2024-11-15 07:35:24 UTC
Should be fixed with https://invent.kde.org/plasma/kwin/-/merge_requests/6769
Comment 3 Vlad Zahorodnii 2024-11-15 09:28:20 UTC
Git commit a12d0723a9b4bc83fce56d459d8af3bc7653db9f by Vlad Zahorodnii.
Committed on 15/11/2024 at 09:14.
Pushed by vladz into branch 'master'.

Revert "scene: Ignore xwayland window shape"

This reverts commit 4bc74d6831253b545a65bf74d2714af3603f17cf.

Wine still depends on XSHAPE to implement window clipping APIs in
Windows applications.

M  +17   -2    src/scene/surfaceitem_wayland.cpp
M  +1    -0    src/scene/surfaceitem_wayland.h

https://invent.kde.org/plasma/kwin/-/commit/a12d0723a9b4bc83fce56d459d8af3bc7653db9f
Comment 4 Vlad Zahorodnii 2024-11-15 09:55:39 UTC
Git commit 89ef2bfb470321ea43b3d8a7383dc2378e3280ec by Vlad Zahorodnii.
Committed on 15/11/2024 at 09:29.
Pushed by vladz into branch 'Plasma/6.2'.

Revert "scene: Ignore xwayland window shape"

This reverts commit 4bc74d6831253b545a65bf74d2714af3603f17cf.

Wine still depends on XSHAPE to implement window clipping APIs in
Windows applications.


(cherry picked from commit a12d0723a9b4bc83fce56d459d8af3bc7653db9f)

Co-authored-by: Vlad Zahorodnii <vlad.zahorodnii@kde.org>

M  +17   -2    src/scene/surfaceitem_wayland.cpp
M  +1    -0    src/scene/surfaceitem_wayland.h

https://invent.kde.org/plasma/kwin/-/commit/89ef2bfb470321ea43b3d8a7383dc2378e3280ec