Bug 1606776 [Wayland] Commit opaque region change to mShell wl_surface r=jhorak

Differential Revision: https://phabricator.services.mozilla.com/D58597

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Martin Stransky 2020-01-03 10:41:55 +00:00
parent db8cf153cd
commit ebc6009b2b

View File

@ -4844,6 +4844,7 @@ void nsWindow::UpdateTopLevelOpaqueRegionWayland(bool aSubtractCorners) {
SubtractTitlebarCorners(region, x, y, width);
}
wl_surface_set_opaque_region(surface, region);
wl_surface_commit(surface);
wl_region_destroy(region);
// Set region to mozcontainer which does not have any offset