Closed Bug 1618486 Opened 4 years ago Closed 4 years ago

[Wayland] Opaque region is misplaced on second screen on mutter

Categories

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

defect

Tracking

()

RESOLVED FIXED

People

(Reporter: stransky, Assigned: stransky)

References

(Blocks 1 open bug)

Details

When two monitors are used and have a different scale factor (say 1 and 2), when Firefox window is move from one to another opaque region is not updated accordingly.

I see that with both basic and GL backend and patch from Bug 1609538 applied.

There's also a small regression from Bug 1609538 - when Firefox is tiled it runs in "fullscreen" mode which is wrong.

This comes from opaque region set by mozcontainer.

Seems to be mutter issue, filed as https://gitlab.gnome.org/GNOME/mutter/issues/1095
Robert, any idea here?

Flags: needinfo?(robert.mader)
Summary: [Wayland] Opaque region is not updated when scale changes → [Wayland] Opaque region is misplaced on second screen on mutter

The scale is not important - it's broken when both screens use the same scale.

This can be resolved as we do not set the opaque region on the container surface any more (bug 1615098). Apart from that a fix for Mutter is pending (https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1108) and will land soon the one way or the other.

Flags: needinfo?(robert.mader)

When the fix lands, can we re-enable opaque regions for subsurfaces or not? If not I'd rather remove the dead code from Firefox.
Thanks.

Flags: needinfo?(robert.mader)

Just landed. Unfortunately we can't yet reenable it as we likely would regress bug 1615098. That being said, we are currently investigating other frame callback / input issues in Mutter/GTK that appear related (1, 2). I'd thus rather leave the code in - especially as it's quite performance relevant (although not measurable within firefox but only on compositor level). I also promise to continue working on it ;)

1: https://gitlab.gnome.org/GNOME/mutter/issues/817
2: https://gitlab.gnome.org/GNOME/gtk/-/issues/2511

Flags: needinfo?(robert.mader)

P.S.: maybe we can repurpose widget.wayland.use-opaque-region for this? It shouldn't be needed any more for the toplevel.

(In reply to Robert Mader [:rmader] from comment #9)

P.S.: maybe we can repurpose widget.wayland.use-opaque-region for this? It shouldn't be needed any more for the toplevel.

What do you exactly mean Robert?
Thanks.

Flags: needinfo?(robert.mader)

I meant it would be useful to trigger the disabled container opaque version with a preference - will come back to it with a patch at some point.

By the way, this bug can be closed. The issue was in Mutter and has been solved and shipped for a while now :)

Flags: needinfo?(robert.mader)
See Also: → 1610716

This issue was solved by https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1108, other occurrences should be fixed by bug 1617002. So closing - please reopen if you still see this.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.