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