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

Abierto
#1,665 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
64/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
linux

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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).

Lenguaje dominante
TypeScript
Estrellas
3.7k
Forks
231
Merge medio
1 d 8 h
PR fusionados (30 d)
150

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de getopenscreen/openscreen

Todos los issues de getopenscreen/openscreen

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.