[metacity/wip/test-3-18: 5/8] compositor: use correct xid when removing window
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity/wip/test-3-18: 5/8] compositor: use correct xid when removing window
- Date: Thu, 14 Apr 2016 17:33:27 +0000 (UTC)
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]