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

オープン
#1,665 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
64/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
linux

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
TypeScript
スター
3.7k
フォーク
231
平均マージ
1日 8時間
マージ済み PR(30日)
150

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

getopenscreen/openscreen のほかの issue

getopenscreen/openscreen の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。