Bug 463239 - no shadow effect for electron applications and adding window decoration manually breaks some parts of the application
Summary: no shadow effect for electron applications and adding window decoration manua...
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: decorations (show other bugs)
Version: 5.26.4
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-12-19 16:16 UTC by rosswzyang
Modified: 2024-03-09 04:03 UTC (History)
3 users (show)

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


Attachments
reproduce video (1.91 MB, video/x-matroska)
2022-12-19 16:37 UTC, rosswzyang
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rosswzyang 2022-12-19 16:16:16 UTC
SUMMARY
There is no shadow effect for electron applications


STEPS TO REPRODUCE
1.  open an electron application (like motrix)

OBSERVED RESULT
There is no shadow effect for electron applications, and if i add window decoration manually, some parts of the application will be broken

EXPECTED RESULT
there is shadow effect for electron applications and if i add window decoration manually, no parts of the application will be broken

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20221218
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 6.0.12-1-default (64-bit)
Graphics Platform: Wayland
Processors: 8 × 11th Gen Intel® Core™ i5-11320H @ 3.20GHz
Memory: 15.4 GiB of RAM
Graphics Processor: Mesa Intel® Xe Graphics
Manufacturer: TIMI
Product Name: A18R

ADDITIONAL INFORMATION
Comment 1 Nicolas Fella 2022-12-19 16:31:12 UTC
Motrix uses client-side decoration. It is up to the application then to provide a shadow.

Disabling "Hide App Menu" in the Motrix settings makes it use server-side decoration though, and thus gives it the usual shadow.

I don't understand what you mean with "some parts of the application will be broken"
Comment 2 rosswzyang 2022-12-19 16:37:20 UTC
Created attachment 154699 [details]
reproduce video
Comment 3 rosswzyang 2022-12-19 16:37:49 UTC
(In reply to Nicolas Fella from comment #1)
> Motrix uses client-side decoration. It is up to the application then to
> provide a shadow.
> 
> Disabling "Hide App Menu" in the Motrix settings makes it use server-side
> decoration though, and thus gives it the usual shadow.
> 
> I don't understand what you mean with "some parts of the application will be
> broken"

look at my attachment
Comment 4 rosswzyang 2022-12-19 16:39:14 UTC
(In reply to Nicolas Fella from comment #1)
> Motrix uses client-side decoration. It is up to the application then to
> provide a shadow.
> 
> Disabling "Hide App Menu" in the Motrix settings makes it use server-side
> decoration though, and thus gives it the usual shadow.
> 
> I don't understand what you mean with "some parts of the application will be
> broken"

look at my attachment(In reply to rosswzyang from comment #3)
> (In reply to Nicolas Fella from comment #1)
> > Motrix uses client-side decoration. It is up to the application then to
> > provide a shadow.
> > 
> > Disabling "Hide App Menu" in the Motrix settings makes it use server-side
> > decoration though, and thus gives it the usual shadow.
> > 
> > I don't understand what you mean with "some parts of the application will be
> > broken"
> 
> look at my attachment

however, motrix has shadow effect on gnome desktop
Comment 5 Nate Graham 2023-01-01 16:02:11 UTC
> There is no shadow effect for electron applications
This is an app issue; CSD apps are expected to draw their own shadows. GNOME ones do. Motrix should too.

> and if i add window decoration manually, some parts of the application will be broken
This could be a KWin issue, maybe. But it might also be an app issue.

Do you see the same thing happening on X11?
Comment 6 rosswzyang 2023-01-11 15:19:58 UTC
(In reply to Nate Graham from comment #5)
> > There is no shadow effect for electron applications
> This is an app issue; CSD apps are expected to draw their own shadows. GNOME
> ones do. Motrix should too.
> 
> > and if i add window decoration manually, some parts of the application will be broken
> This could be a KWin issue, maybe. But it might also be an app issue.
> 
> Do you see the same thing happening on X11?

Yes, same on X11