[gtk/wip/matthiasc/popup5: 150/150] surface: Give backends a chance to disconnect
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/matthiasc/popup5: 150/150] surface: Give backends a chance to disconnect
- Date: Fri, 24 May 2019 02:10:47 +0000 (UTC)
commit 6d1ff38b4636c1b2cc67cf933941ffcd111b4b6f
Author: Matthias Clasen <mclasen redhat com>
Date: Fri May 24 01:56:35 2019 +0000
surface: Give backends a chance to disconnect
Call the destroy vfunc before clearing
frame clock and gl context, so backends
have a chance to clean up.
gdk/gdksurface.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/gdksurface.c b/gdk/gdksurface.c
index ac90d1bc82..1de54bca0f 100644
--- a/gdk/gdksurface.c
+++ b/gdk/gdksurface.c
@@ -913,6 +913,8 @@ _gdk_surface_destroy_hierarchy (GdkSurface *surface,
display = gdk_surface_get_display (surface);
+ GDK_SURFACE_GET_CLASS (surface)->destroy (surface, foreign_destroy);
+
if (surface->gl_paint_context)
{
/* Make sure to destroy if current */
@@ -930,8 +932,6 @@ _gdk_surface_destroy_hierarchy (GdkSurface *surface,
_gdk_surface_clear_update_area (surface);
- GDK_SURFACE_GET_CLASS (surface)->destroy (surface, foreign_destroy);
-
surface->state |= GDK_SURFACE_STATE_WITHDRAWN;
surface->destroyed = TRUE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]