diff --git a/src/core/screen.c b/src/core/screen.c index f565089f5..5b832a0c2 100644 --- a/src/core/screen.c +++ b/src/core/screen.c @@ -452,10 +452,9 @@ create_guard_window (Display *xdisplay, MetaScreen *screen) XSetWindowAttributes attributes; Window guard_window; gulong create_serial; - + attributes.event_mask = NoEventMask; attributes.override_redirect = True; - attributes.background_pixel = BlackPixel (xdisplay, screen->number); /* We have to call record_add() after we have the new window ID, * so save the serial for the CreateWindow request until then */ @@ -468,10 +467,10 @@ create_guard_window (Display *xdisplay, MetaScreen *screen) screen->rect.width, screen->rect.height, 0, /* border width */ - CopyFromParent, /* depth */ - CopyFromParent, /* class */ + 0, /* depth */ + InputOnly, /* class */ CopyFromParent, /* visual */ - CWEventMask|CWOverrideRedirect|CWBackPixel, + CWEventMask|CWOverrideRedirect, &attributes); /* https://bugzilla.gnome.org/show_bug.cgi?id=710346 */