mirror of
https://github.com/brl/mutter.git
synced 2024-12-01 12:20:47 -05:00
MetaWindowX11: fix listening for shape events
This code was lost when support for input shapes was originally introduced.
This commit is contained in:
parent
9f5087e97d
commit
26cf75d5a4
@ -1474,6 +1474,11 @@ meta_window_x11_new (MetaDisplay *display,
|
|||||||
XISelectEvents (display->xdisplay, xwindow, &mask, 1);
|
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 */
|
/* Get rid of any borders */
|
||||||
if (attrs.border_width != 0)
|
if (attrs.border_width != 0)
|
||||||
XSetWindowBorderWidth (display->xdisplay, xwindow, 0);
|
XSetWindowBorderWidth (display->xdisplay, xwindow, 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user