[gtk+/gtk-3-10] gdkwindow: Use an InputOnly window for focus_window
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/gtk-3-10] gdkwindow: Use an InputOnly window for focus_window
- Date: Sun, 6 Apr 2014 03:40:51 +0000 (UTC)
commit eac915a5aef23d2d6e5abae59c29fc5ed7f8a76a
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Fri Jan 31 11:13:29 2014 -0500
gdkwindow: Use an InputOnly window for focus_window
For XWayland, this is somewhat important to prevent a dummy XWayland surface
being made for all clients that connect...
https://bugzilla.gnome.org/show_bug.cgi?id=723390
gdk/x11/gdkwindow-x11.c | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index 5b51db3..44e027c 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -820,16 +820,18 @@ create_focus_window (GdkDisplay *display,
GdkEventMask event_mask;
Display *xdisplay;
Window focus_window;
+ XWindowAttributes xwa;
xdisplay = GDK_DISPLAY_XDISPLAY (display);
display_x11 = GDK_X11_DISPLAY (display);
- focus_window = XCreateSimpleWindow (xdisplay, parent,
- -1, -1, 1, 1, 0,
- 0, 0);
+ focus_window = XCreateWindow (xdisplay, parent,
+ -1, -1, 1, 1, 0,
+ 0, /* depth */
+ InputOnly,
+ CopyFromParent,
+ 0, &xwa);
- /* FIXME: probably better to actually track the requested event mask for the toplevel
- */
event_mask = (GDK_KEY_PRESS_MASK |
GDK_KEY_RELEASE_MASK |
GDK_FOCUS_CHANGE_MASK);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]