mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 13:21:05 +00:00
Bug 1761870 [Wayland] Mark MozContainer as mapped to make sure moz_container_wayland_unmap() is called on hide/withdraw r=emilio
Depends on D143168 Differential Revision: https://phabricator.services.mozilla.com/D143169
This commit is contained in:
parent
2e6ccbec80
commit
0024e9426e
@ -359,6 +359,10 @@ static gboolean moz_container_wayland_map_event(GtkWidget* widget,
|
||||
LOGWAYLAND("%s [%p]\n", __FUNCTION__,
|
||||
(void*)moz_container_get_nsWindow(MOZ_CONTAINER(widget)));
|
||||
|
||||
// We need to mark MozContainer as mapped to make sure
|
||||
// moz_container_wayland_unmap() is called on hide/withdraw.
|
||||
gtk_widget_set_mapped(widget, TRUE);
|
||||
|
||||
// Don't create wl_subsurface in map_event when it's already created or
|
||||
// if we create it for the first time.
|
||||
if (wl_container->ready_to_draw || wl_container->before_first_size_alloc) {
|
||||
|
Loading…
Reference in New Issue
Block a user