[mutter/wayland] MetaWindowX11: fix listening for shape events



commit 26cf75d5a478c761e9f0142db1607a015d6e80f0
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Tue Feb 25 01:29:50 2014 +0100

    MetaWindowX11: fix listening for shape events
    
    This code was lost when support for input shapes was originally
    introduced.

 src/core/window-x11.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/core/window-x11.c b/src/core/window-x11.c
index 8939f51..00c7faf 100644
--- a/src/core/window-x11.c
+++ b/src/core/window-x11.c
@@ -1474,6 +1474,11 @@ meta_window_x11_new (MetaDisplay       *display,
     XISelectEvents (display->xdisplay, xwindow, &mask, 1);
   }
 
+#ifdef HAVE_SHAPE
+  if (META_DISPLAY_HAS_SHAPE (display))
+    XShapeSelectInput (display->xdisplay, xwindow, ShapeNotifyMask);
+#endif
+
   /* Get rid of any borders */
   if (attrs.border_width != 0)
     XSetWindowBorderWidth (display->xdisplay, xwindow, 0);


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