[metacity] compositor: use correct xid when removing window
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] compositor: use correct xid when removing window
- Date: Fri, 15 Apr 2016 18:08:05 +0000 (UTC)
commit b7e45eacc4048f2052f855c6d5489dcd85221f72
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 8d69fe8..c0b8e70 100644
--- a/src/compositor/compositor-xrender.c
+++ b/src/compositor/compositor-xrender.c
@@ -2865,10 +2865,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]