Open Bug 1844226 Opened 1 year ago Updated 1 year ago

[Wayland] PIP window has no opaque region

Categories

(Core :: Widget: Gtk, defect, P3)

Desktop
Linux
defect

Tracking

()

Tracking Status
firefox117 --- affected

People

(Reporter: heftig, Unassigned)

References

(Blocks 2 open bugs)

Details

Picture-in-picture windows are rectangular and have no transparent parts, not even a drop shadow.

Enabling GNOME Shell's opaque region debugging marks Picture-in-Picture windows as potentially transparent (tinted purple). However, given the above, they should get marked entirely opaque (tinted green).

Not having a correct opaque region increases the cost of compositing PIP windows.

Jan, do you mind to investigate it more?

PIP window should not be transparent:
https://searchfox.org/mozilla-central/rev/907db2c22743f1b24496198b10a3dca4085cfb08/widget/gtk/nsWindow.cpp#5946

so I wonder where the transparency come from. May it be related to utility window type?
https://searchfox.org/mozilla-central/rev/907db2c22743f1b24496198b10a3dca4085cfb08/widget/gtk/nsWindow.cpp#5997

Priority: -- → P3

Disabling widget.transparent-windows fixes PIP windows but breaks popup menus. Since this just affects the app-paintable property, it looks like we're seeing GtkWindow's default opaque region.

You need to log in before you can comment on or make changes to this bug.