From: Cheng Zhao Date: Fri, 23 May 2014 15:00:04 +0000 (+0800) Subject: gtk: Fix the focus event. X-Git-Tag: v0.12.6~8 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=fc9fd463088d386b29e82f76c82c7aa5c1c55d78;p=electron.git gtk: Fix the focus event. --- diff --git a/atom/browser/native_window_gtk.cc b/atom/browser/native_window_gtk.cc index 364947ec..d5562766 100644 --- a/atom/browser/native_window_gtk.cc +++ b/atom/browser/native_window_gtk.cc @@ -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);