[gtk/wip/matthiasc/popup5: 227/234] 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: 227/234] surface: Give backends a chance to disconnect
- Date: Mon, 27 May 2019 13:41:12 +0000 (UTC)
commit 927b6a8c602aec1553fd4fc5bcb6507ce732ba96
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 6056953a97..5be583d096 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]