d417c4
# HG changeset patch
d417c4
# User Martin Stransky <stransky@redhat.com>
d417c4
# Parent  4e3ad95d689a5beabf3c1f41d958794fe00e3767
d417c4
Bug 1196777 - Ask GDK to receive focus events, r=?karlt
d417c4
d417c4
diff --git a/widget/gtk/nsWindow.cpp b/widget/gtk/nsWindow.cpp
d417c4
--- a/widget/gtk/nsWindow.cpp
d417c4
+++ b/widget/gtk/nsWindow.cpp
d417c4
@@ -142,17 +142,18 @@ const gint kEvents = GDK_EXPOSURE_MASK |
d417c4
                      GDK_ENTER_NOTIFY_MASK | GDK_LEAVE_NOTIFY_MASK |
d417c4
                      GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK |
d417c4
 #if GTK_CHECK_VERSION(3,4,0)
d417c4
                      GDK_SMOOTH_SCROLL_MASK |
d417c4
                      GDK_TOUCH_MASK |
d417c4
 #endif
d417c4
                      GDK_SCROLL_MASK |
d417c4
                      GDK_POINTER_MOTION_MASK |
d417c4
-                     GDK_PROPERTY_CHANGE_MASK;
d417c4
+                     GDK_PROPERTY_CHANGE_MASK |
d417c4
+                     GDK_FOCUS_CHANGE_MASK;
d417c4
 
d417c4
 /* utility functions */
d417c4
 static bool       is_mouse_in_window(GdkWindow* aWindow,
d417c4
                                      gdouble aMouseX, gdouble aMouseY);
d417c4
 static nsWindow  *get_window_for_gtk_widget(GtkWidget *widget);
d417c4
 static nsWindow  *get_window_for_gdk_window(GdkWindow *window);
d417c4
 static GtkWidget *get_gtk_widget_for_gdk_window(GdkWindow *window);
d417c4
 static GdkCursor *get_gtk_cursor(nsCursor aCursor);