Bug 438898

Summary: Window decoration is not applied to gtk apps on wayland
Product: [Applications] systemsettings Reporter: trmdi
Component: kcm_styleAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bugseforuns, mail, nate
Priority: NOR Keywords: wayland-only
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description trmdi 2021-06-19 04:25:47 UTC
When I use Material decoration on X, Firefox (without Kwin titlebar) uses it but it does not work on wayland, it uses the Breeze style.
Comment 1 trmdi 2021-06-19 15:46:05 UTC
I've just found that somehow window_decorations.css is not used. When I append that file into ~/.config/gtk-3.0/gtk.css it works again.
Comment 2 trmdi 2021-06-19 15:53:31 UTC
Maybe relates to https://invent.kde.org/plasma/kde-gtk-config/-/merge_requests/17
Comment 3 trmdi 2021-06-19 18:08:19 UTC
Or the gdk wayland backend does not read the module list from settings.ini? https://github.com/swaywm/sway/wiki/GTK-3-settings-on-Wayland
Comment 4 trmdi 2021-06-20 02:49:30 UTC
(In reply to trmdi from comment #3)
> Or the gdk wayland backend does not read the module list from settings.ini?
> https://github.com/swaywm/sway/wiki/GTK-3-settings-on-Wayland

I can confirm this. In wayland gtk modules are not loaded.

If I set the GTK_MODULES environment variable, they will be loaded. But I don't know how to fix this bug in a right way...
Comment 5 Patrick Silva 2021-06-20 12:57:27 UTC
previously reported as bug 437082
Comment 6 Nate Graham 2021-07-28 20:19:52 UTC

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