Bug 434014 - Plastik window decorations are not aplied for GTK apps with CSD
Summary: Plastik window decorations are not aplied for GTK apps with CSD
Status: CONFIRMED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_style (show other bugs)
Version: 5.21.1
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-05 14:49 UTC by medin
Modified: 2021-03-05 19:31 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Window decorations are not aplied for GTK apps with CSD (173.03 KB, image/png)
2021-03-05 14:49 UTC, medin
Details
Oxygen decorations GTK apps with CSD (119.06 KB, image/png)
2021-03-05 19:14 UTC, medin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description medin 2021-03-05 14:49:25 UTC
Created attachment 136398 [details]
Window decorations are not aplied for GTK apps with CSD

When I set "Oxygen" or "Plastik" window decoration in settings, GTK apps with CSD are not affected at all and still use breeze window decoration even if the app is closed then reopened. See attached image for more info.

Operating System: Manjaro Linux
KDE Plasma Version: 5.21.1
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Kernel Version: 5.4.100-1-MANJARO
OS Type: 64-bit
Comment 1 Nate Graham 2021-03-05 15:50:48 UTC
do you have kde-gtk-config installed?
Comment 2 Alois Wohlschlager 2021-03-05 17:13:15 UTC
This is a known shortcoming in the decoration exporter, supporting these decorations will require a significant amount of extra effort.
Comment 3 Nate Graham 2021-03-05 17:20:36 UTC
Oof.
Comment 4 Mikhail Zolotukhin 2021-03-05 17:25:16 UTC
Plastic is indeed won't work, because it's too much effort to support (If someone want, they can create a MR).

Oxygen on the other hand should be supported, AFAIK it's draws itself just like breeze. When I created this functionality I tested it, so I'm surprised.
Comment 5 Alois Wohlschlager 2021-03-05 18:03:14 UTC
It seems you're right. However, I noticed that if in kwinrc, "library" is "org.kde.oxygen" but "theme" is corrupted or absent, KWin will render Oxygen, but Breeze buttons will be exported to GTK. @medin, could you check whether this is the culprit for you?
Comment 6 medin 2021-03-05 19:00:50 UTC
(In reply to Nate Graham from comment #1)
> do you have kde-gtk-config installed?

Yeah, I have kde-gtk-config v5.21.1-1 installed.
Comment 7 medin 2021-03-05 19:12:39 UTC
(In reply to Alois Wohlschlager from comment #5)
> It seems you're right. However, I noticed that if in kwinrc, "library" is
> "org.kde.oxygen" but "theme" is corrupted or absent, KWin will render
> Oxygen, but Breeze buttons will be exported to GTK. @medin, could you check
> whether this is the culprit for you?

With Oxygen decoration it seems to work but not correctly, the shadow is not the same as oxygen it remains black like breeze, and maximize/minimize/close buttons are much smaller. See attached image for more info.
Comment 8 medin 2021-03-05 19:14:27 UTC
Created attachment 136409 [details]
Oxygen decorations GTK apps with CSD
Comment 9 Alois Wohlschlager 2021-03-05 19:21:42 UTC
I have no idea about the shadow unfortunately. Regarding the size of the buttons, this is actually an issue with Breeze and Aurorae as well and I will try to figure out a solution.
Comment 10 medin 2021-03-05 19:23:02 UTC
Firefox is also affected with this bug, it does not apply Plastik decoration, and applies Oxygen incorrectly. While Chromium (GTK theme) does not even apply shadow with any KDE plasma theme but suffers from titlebar icons problems as Firefox.
Comment 11 Alois Wohlschlager 2021-03-05 19:31:21 UTC
Let's confine this bug report to the Plastik issue. The button size thing is something I know of. Please file a separate bug for the shadow issue.

These reason why separate issues should be filed separately is that we will need separate fixes for them, and this is very hard to keep track of in a single bug report.