[mutter/wayland] screen: Make the guard window an InputOnly window
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wayland] screen: Make the guard window an InputOnly window
- Date: Fri, 31 Jan 2014 19:24:33 +0000 (UTC)
commit 7d3012fd67d42068a4332c3aedb58fd6c472cb30
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Jan 31 14:09:26 2014 -0500
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.
src/core/screen.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
---
diff --git a/src/core/screen.c b/src/core/screen.c
index cc3c134..aa3628f 100644
--- a/src/core/screen.c
+++ b/src/core/screen.c
@@ -452,10 +452,9 @@ meta_screen_create_guard_window (Display *xdisplay, MetaScreen *screen)
Window guard_window;
gulong create_serial;
MetaStackWindow stack_window;
-
+
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 @@ meta_screen_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);
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]