MetaWindowX11: fix listening for shape events

This code was lost when support for input shapes was originally
introduced.
This commit is contained in:
Giovanni Campagna 2014-02-25 01:29:50 +01:00
parent 9f5087e97d
commit 26cf75d5a4

View File

@ -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);