From fc9fd463088d386b29e82f76c82c7aa5c1c55d78 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Fri, 23 May 2014 23:00:04 +0800 Subject: [PATCH] gtk: Fix the focus event. --- atom/browser/native_window_gtk.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/atom/browser/native_window_gtk.cc b/atom/browser/native_window_gtk.cc index 364947ec493f..d556276633ad 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);