[metacity/wip/test-3-18: 5/8] compositor: use correct xid when removing window



commit 74f376458394a929a21f8db268de2c7da208ff35
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date:   Thu Apr 14 19:38:00 2016 +0300

    compositor: use correct xid when removing window

 src/compositor/compositor-xrender.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/src/compositor/compositor-xrender.c b/src/compositor/compositor-xrender.c
index 0783bb3..6baa01e 100644
--- a/src/compositor/compositor-xrender.c
+++ b/src/compositor/compositor-xrender.c
@@ -2952,10 +2952,16 @@ xrender_free_window (MetaCompositor *compositor,
 {
 #ifdef HAVE_COMPOSITE_EXTENSIONS
   MetaCompositorXRender *xrc;
+  MetaFrame *frame;
   Window xwindow;
 
   xrc = (MetaCompositorXRender *) compositor;
-  xwindow = meta_window_get_xwindow (window);
+  frame = meta_window_get_frame (window);
+
+  if (frame)
+    xwindow = meta_frame_get_xwindow (frame);
+  else
+    xwindow = meta_window_get_xwindow (window);
 
   destroy_win (xrc->display, xwindow, FALSE);
 #endif


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]