GNOME Wayland: a window take records the window's client-side shadow as a black border

Aperta
#1,665 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
64/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
linux

Direzione di ricerca

Reproduce on GNOME Wayland, then find the PipeWire capture helper and the place that logs capture started with the 1012×672 dimensions. Read how the stream's video crop metadata is exposed and compare it with the full buffer that is currently kept. Done means a window take is cropped to the visible window region (about 890×550 here), with no black border and matching logged dimensions.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

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

  1. GNOME 46 on Wayland. HUD or Record mode → record → in the portal picker, Application Window → a GTK4 window (Files here) → Share.
  2. Record a few seconds, then stop.
  3. 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).

Lingua principale
TypeScript
Stelle
3.7k
Fork
231
Merge medio
1g 8h
PR unite (30g)
150

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di getopenscreen/openscreen

Tutte le issue di getopenscreen/openscreen

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.