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