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

Đang mở
#1,665 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
64/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
linux

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
3.7k
Fork
231
Merge trung bình
1 ngày 8 giờ
Pull request đã merge (30 ngày)
150

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của getopenscreen/openscreen

Tất cả issue của getopenscreen/openscreen

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.