KDE-Rounded-Corners icon indicating copy to clipboard operation
KDE-Rounded-Corners copied to clipboard

move to kdecoration shadows breaks shadow consistency with csd apps

Open Wi11iam-1 opened this issue 1 year ago • 3 comments

Kdecorations are not applied to CSD apps (namly gtk apps, firefox or chrome browsers without native titlebar enabled)

Before the move to use the shadow from the window decoration all these apps could be configured to have exactly same outline and shadow behavior which was main reason to install this extension.

Is it possible to force decoration shadows (without the decoration) in a kwin effect for any app? that way one could manually disable all box-shadows and window margins for gtk apps and just use that.

For some apps a potential workaround is to enforce a titlebar with kwin-effects and then remove the titlebar in the kdecoration (only Breeze and Klassy allow this) but it doesnt work for many apps as the enforced titlebar does not show up or the titlebar remove rule cannot be specified as detailed as the window rule.

Wi11iam-1 avatar Jan 16 '25 19:01 Wi11iam-1

I guess I can add a checkbox for the user to use the native shadow or not.

matinlotfali avatar Feb 07 '25 05:02 matinlotfali

enforce a titlebar with kwin-effects and then remove the titlebar in the kdecoration

Doesn't seem to work for any of the Electron apps for me at least :(

mufeedali avatar Feb 11 '25 16:02 mufeedali

with kwin-effects i meant window rules. u need set the rule "No titlebar and border" to "No" and "Enforce". This works only in Xorg though but it lets u remove that titlebar again in the breeze or klassy window decoration that way u get SSD shadows.

I guess I can add a checkbox for the user to use the native shadow or not.

Yes pls. breeze and klassy shadows look rly bad with square conrners this effect fixed that

Still wondering if anyone can make a kwin-effect that does the afformentioned workaround in one go to just enforce shadows no matter the decoration... that would help aton with all the apps that dont draw shadows

Wi11iam-1 avatar Feb 11 '25 17:02 Wi11iam-1

@Wi11iam-1 @mufeedali Can you please test the pull request #353 for me?

matinlotfali avatar May 19 '25 06:05 matinlotfali

I've tested that and it works in general:

Image

But it looks very different on gtk/libadwaita apps:

Image

rkunschke avatar May 23 '25 07:05 rkunschke