screen: Don't map the COW on Wayland

This is unnecessary, and since we don't shape it, we get a giant input
window covering the rest of our windows.
This commit is contained in:
Jasper St. Pierre 2015-02-18 11:16:52 -08:00
parent 2aa6dcd9d8
commit 0ac2f61a2c

View File

@ -678,6 +678,9 @@ meta_screen_new (MetaDisplay *display,
screen->starting_corner = META_SCREEN_TOPLEFT; screen->starting_corner = META_SCREEN_TOPLEFT;
screen->guard_window = None; screen->guard_window = None;
/* If we're a Wayland compositor, then we don't grab the COW, since it
* will map it. */
if (!meta_is_wayland_compositor ())
screen->composite_overlay_window = XCompositeGetOverlayWindow (xdisplay, xroot); screen->composite_overlay_window = XCompositeGetOverlayWindow (xdisplay, xroot);
/* Now that we've gotten taken a reference count on the COW, we /* Now that we've gotten taken a reference count on the COW, we