From 7c356fd05bb05b939406b2664963fc45c8a21778 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Sun, 13 Feb 2011 19:25:21 +0000 Subject: [PATCH] stage/x11: Add a debug note for unrealization MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We remove the ClutterStageWindow ↔ Window mapping in the ::unrealize implementation; let's just check that we get there using a simple debug note. --- clutter/x11/clutter-stage-x11.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/clutter/x11/clutter-stage-x11.c b/clutter/x11/clutter-stage-x11.c index a601b365a..4a203690a 100644 --- a/clutter/x11/clutter-stage-x11.c +++ b/clutter/x11/clutter-stage-x11.c @@ -1341,7 +1341,13 @@ _clutter_stage_x11_destroy_window_untrapped (ClutterStageX11 *stage_x11) Window xwin = stage_x11->xwin; if (clutter_stages_by_xid != NULL) - g_hash_table_remove (clutter_stages_by_xid, GINT_TO_POINTER (xwin)); + { + CLUTTER_NOTE (BACKEND, "Removing X11 stage 0x%x [%p]", + (unsigned int) xwin, + stage_x11); + + g_hash_table_remove (clutter_stages_by_xid, GINT_TO_POINTER (xwin)); + } if (!stage_x11->is_foreign_xwin && xwin != None) {