]> khamidou — GitHub mirrors - electron.git/commitdiff
gtk: Fix the focus event.
authorCheng Zhao <zcbenz@gmail.com>
Fri, 23 May 2014 15:00:04 +0000 (23:00 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 23 May 2014 15:00:04 +0000 (23:00 +0800)
atom/browser/native_window_gtk.cc

index 364947ec493f788dff3523f88f7201ab79401f93..d556276633ad62a3068012241d35127eff0f642f 100644 (file)
@@ -145,6 +145,8 @@ NativeWindowGtk::NativeWindowGtk(content::WebContents* web_contents,
                    G_CALLBACK(OnWindowDeleteEventThunk), this);
   g_signal_connect(window_, "focus-out-event",
                    G_CALLBACK(OnFocusOutThunk), this);
+  g_signal_connect(window_, "focus-in-event",
+                   G_CALLBACK(OnFocusInThunk), this);
   g_signal_connect(window_, "window-state-event",
                    G_CALLBACK(OnWindowStateThunk), this);