Bug 472488

Summary: When maximizing then restoring window size, Libadwaita GTK applications lose shadows effect
Product: [Plasma] kwin Reporter: rosswzyang
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: VERIFIED UPSTREAM    
Severity: normal CC: mmnf.mac.josh, nate
Priority: HI    
Version First Reported In: 5.27.7   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: reproduce video

Description rosswzyang 2023-07-22 02:31:49 UTC
Created attachment 160440 [details]
reproduce video

SUMMARY
maximizing then restoring window size,  gtk applications lose shadows effect


STEPS TO REPRODUCE
1. open 1 gtk4 apps like gnome web
2. maximizing then restoring window size


OBSERVED RESULT
the shadows effect disappeared

EXPECTED RESULT
the shadows effect exists

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20230718
KDE Plasma Version: 5.27.6
KDE Frameworks Version: 5.108.0
Qt Version: 5.15.10
Kernel Version: 6.4.3-1-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7735HS with Radeon Graphics
Memory: 27,1 GiB of RAM
Graphics Processor: AMD Radeon Graphics
Manufacturer: LENOVO
Product Name: 83AS
System Version: XiaoXinPro 16 ARP8

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2023-09-08 19:22:28 UTC
Can reproduce in Plasma 6 too with Libadwaita GTK4 apps. Cannot reproduce with non-Libadwaita apps.
Comment 2 Nate Graham 2023-09-11 22:28:47 UTC
*** Bug 472196 has been marked as a duplicate of this bug. ***
Comment 3 Vlad Zahorodnii 2023-09-18 06:32:29 UTC
I cannot reproduce this issue when running in plasma 6 or 5.27. libadwaita version on my computer is 1:1.3.5-1, and gtk4 is 1:4.12.1-1. Are you able to reproduce this issue with the same exact or newer versions of software? Maybe it's a regression or something
Comment 4 Vlad Zahorodnii 2023-09-18 14:03:34 UTC
I managed to reproduce it by installing org.gnome.TextEditor from flathub.

I don't see anything wrong on kwin side, it configures the text editor window correctly.

Also, I am unable to reproduce the issue if org.gnome.TextEditor is install from flathub-beta. So this is likely a gtk4 or libadwaita regression. Try updating the two.
Comment 5 Vlad Zahorodnii 2023-09-18 14:04:05 UTC
is installed from flathub-beta*
Comment 6 Nate Graham 2023-09-18 14:10:36 UTC
Can verify that. Looks like it was indeed a regression that got fixed already.