summaryrefslogtreecommitdiff
path: root/community/lightdm-gtk2-greeter/tooltip-focus.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/lightdm-gtk2-greeter/tooltip-focus.patch')
-rw-r--r--community/lightdm-gtk2-greeter/tooltip-focus.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/community/lightdm-gtk2-greeter/tooltip-focus.patch b/community/lightdm-gtk2-greeter/tooltip-focus.patch
new file mode 100644
index 000000000..9444222a9
--- /dev/null
+++ b/community/lightdm-gtk2-greeter/tooltip-focus.patch
@@ -0,0 +1,24 @@
+--- a/src/lightdm-gtk-greeter.c 2014-03-26 10:28:44 +0000
++++ b/src/lightdm-gtk-greeter.c 2014-04-23 11:04:01 +0000
+@@ -2203,6 +2203,7 @@
+ Window keyboard_xid = 0;
+ GdkDisplay* display = gdk_x11_lookup_xdisplay (xevent->xmap.display);
+ GdkWindow* win = gdk_x11_window_foreign_new_for_display (display, xwin);
++ GdkWindowTypeHint win_type = gdk_window_get_type_hint (win);
+
+ /* Check to see if this window is our onboard window, since we don't want to focus it. */
+ if (keyboard_win)
+@@ -2211,8 +2212,10 @@
+ #else
+ keyboard_xid = gdk_x11_drawable_get_xid (keyboard_win);
+ #endif
+-
+- if (xwin != keyboard_xid && gdk_window_get_type_hint (win) != GDK_WINDOW_TYPE_HINT_NOTIFICATION)
++
++ if (xwin != keyboard_xid
++ && win_type != GDK_WINDOW_TYPE_HINT_TOOLTIP
++ && win_type != GDK_WINDOW_TYPE_HINT_NOTIFICATION)
+ {
+ gdk_window_focus (win, GDK_CURRENT_TIME);
+ /* Make sure to keep keyboard above */
+