mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-14 20:51:07 +00:00
Merge branch 'broadway-surface-destroy' into 'master'
Broadway surface destroy See merge request GNOME/gtk!1914
This commit is contained in:
commit
15211556df
@ -86,7 +86,7 @@ gdk_broadway_surface_finalize (GObject *object)
|
||||
|
||||
broadway_display = GDK_BROADWAY_DISPLAY (gdk_surface_get_display (GDK_SURFACE (impl)));
|
||||
|
||||
g_hash_table_remove (broadway_display->id_ht, GINT_TO_POINTER(impl->id));
|
||||
g_hash_table_remove (broadway_display->id_ht, GINT_TO_POINTER (impl->id));
|
||||
|
||||
if (impl->cursor)
|
||||
g_object_unref (impl->cursor);
|
||||
@ -271,6 +271,8 @@ _gdk_broadway_display_create_surface (GdkDisplay *display,
|
||||
surface->height);
|
||||
g_hash_table_insert (broadway_display->id_ht, GINT_TO_POINTER(impl->id), surface);
|
||||
|
||||
g_object_ref (surface);
|
||||
|
||||
if (!surface->parent)
|
||||
broadway_display->toplevels = g_list_prepend (broadway_display->toplevels, impl);
|
||||
|
||||
@ -320,7 +322,6 @@ _gdk_broadway_surface_destroy (GdkSurface *surface,
|
||||
g_hash_table_remove (broadway_display->id_ht, GINT_TO_POINTER (impl->id));
|
||||
|
||||
_gdk_broadway_server_destroy_surface (broadway_display->server, impl->id);
|
||||
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -356,6 +356,7 @@ test_trigger_trigger (void)
|
||||
gdk_event_unref (event);
|
||||
}
|
||||
|
||||
gdk_surface_destroy (surface);
|
||||
g_object_unref (surface);
|
||||
|
||||
g_object_unref (trigger[0]);
|
||||
|
Loading…
Reference in New Issue
Block a user