You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
GNOME Wayland: a window take records the window's client-side shadow as a black border #1665
On GNOME Wayland, recording a single GTK4 window gives a video larger than the window, with a black band all around it: the window's transparent client-side shadow is kept and recorded as black.
Steps
GNOME 46 on Wayland. HUD or Record mode → record → in the portal picker, Application Window → a GTK4 window (Files here) → Share.
Record a few seconds, then stop.
Look at the take in the editor, or probe the file.
Expected: the window alone, at its own size.
Actual
The file is 1012×672 for a window drawn at about 890×550.
About 61 px of pure black surround it on every side: pixels (5,5), (30,30) and (60,60) are (0,0,0), and (70,70) is window content.
The log reads capture started {"width":1012,"height":672}.
The editor shows the window inside a black frame.
Seen on the 2.4.0-rc.1 AppImage, Ubuntu 24.04.4, GNOME Shell 46 on Wayland, AMD Radeon 610M (VA-API).
Likely cause (unverified)
The PipeWire helper keeps the whole buffer, shadow included, instead of cropping to the region the stream marks as the window's visible part (its video crop metadata).
Activity
docs(e2e): mark the GTK4 window-take border as a known limit in the v…
docs(e2e): mark the GTK4 window-take border as a known limit in the v…
fix(capture): crop the GNOME window shadow off Linux window takes
fix(capture): keep a window's translucent parts out of its shadow crop