screen: Make the guard window an InputOnly window
Using a full InputOutput window causes us to make a full Wayland surface for it, and go through the X server. As the goal of the guard window is a window for us to stack minimized windows under so we can prevent them from getting input, it makes sense to use an InputOnly window here.
This commit is contained in:
parent
225e20a898
commit
7d3012fd67
@ -455,7 +455,6 @@ meta_screen_create_guard_window (Display *xdisplay, MetaScreen *screen)
|
|||||||
|
|
||||||
attributes.event_mask = NoEventMask;
|
attributes.event_mask = NoEventMask;
|
||||||
attributes.override_redirect = True;
|
attributes.override_redirect = True;
|
||||||
attributes.background_pixel = BlackPixel (xdisplay, screen->number);
|
|
||||||
|
|
||||||
/* We have to call record_add() after we have the new window ID,
|
/* We have to call record_add() after we have the new window ID,
|
||||||
* so save the serial for the CreateWindow request until then */
|
* so save the serial for the CreateWindow request until then */
|
||||||
@ -468,10 +467,10 @@ meta_screen_create_guard_window (Display *xdisplay, MetaScreen *screen)
|
|||||||
screen->rect.width,
|
screen->rect.width,
|
||||||
screen->rect.height,
|
screen->rect.height,
|
||||||
0, /* border width */
|
0, /* border width */
|
||||||
CopyFromParent, /* depth */
|
0, /* depth */
|
||||||
CopyFromParent, /* class */
|
InputOnly, /* class */
|
||||||
CopyFromParent, /* visual */
|
CopyFromParent, /* visual */
|
||||||
CWEventMask|CWOverrideRedirect|CWBackPixel,
|
CWEventMask|CWOverrideRedirect,
|
||||||
&attributes);
|
&attributes);
|
||||||
|
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user