Screenshots have too much padding (transparent pixels) around the window
What happens
I think LibAdwaita might be drawing fully transparent pixels as CSD around windows.
Because of this, screenshots of LibAdwaita apps are not usable as screenshot images in the appstream info and appstream-util validate
fails. Unless, I use crop-to-content feature of GIMP to crop out the transparent pixels from the screenshot.
This wouldn't be much of a problem for me personally if I only had to take 2-3 or less screenshots. But I take like 16 screenshots (8 light and 8 dark) of my app and it is very cumbersome to have to, one by one, open 16 images in GIMP, crop-to-content, and then save.
This problem is non-existent on apps made with other GUI toolkits like Qt. Gtk 3/4 apps also have padding around their windows but a very small amount compared to LibAdwaita apps.
Following are some screenshots with gray background to demonstrate the issue.
Adw Window (Without any crop)
Adw Window (After crop-to-content)
GTK4 window (Without any crop)
Qt5 window (VLC)
Expected behaviour
LibAdwaita apps should not draw any fully transparent pixels as CSD but only shadows. Like in this image
and unlike in this image
System Info
Software
OS: Manjaro Linux 21.3.6 (Ruah)
GNOME Shell: 42.3.1
Windowing System: Wayland
Hardware (as reported by GNOME Settings)
CPU: Intel® Core™ i7-7500U × 4
GPU: Mesa Intel® HD Graphics 620 (KBL GT2)