diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-04-25 04:04:23 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-04-25 04:04:23 +0000 |
commit | 2e237e087ac1a2449690b7dfdfed1e406838feaf (patch) | |
tree | f962d302a15b954fe81d8c6b15a25158ad58efa3 /community/lightdm-gtk3-greeter/tooltip-focus.patch | |
parent | 431023a318e680258f02c1fb5fdca176c68e5cb7 (diff) |
Fri Apr 25 04:00:40 UTC 2014
Diffstat (limited to 'community/lightdm-gtk3-greeter/tooltip-focus.patch')
-rw-r--r-- | community/lightdm-gtk3-greeter/tooltip-focus.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/community/lightdm-gtk3-greeter/tooltip-focus.patch b/community/lightdm-gtk3-greeter/tooltip-focus.patch new file mode 100644 index 000000000..9444222a9 --- /dev/null +++ b/community/lightdm-gtk3-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 */ + |