From 26cf75d5a478c761e9f0142db1607a015d6e80f0 Mon Sep 17 00:00:00 2001 From: Giovanni Campagna Date: Tue, 25 Feb 2014 01:29:50 +0100 Subject: [PATCH] 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 file changed, 5 insertions(+) diff --git a/src/core/window-x11.c b/src/core/window-x11.c index 8939f515a..00c7fafd9 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);