From a50d3bde5c491edb8e1da50208828c8a3447ebab Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Tue, 8 Apr 2014 09:32:44 +0800 Subject: [PATCH] gtk: Connect to window-state-event, fixes #226. --- 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 375f4d8252cd..0b69b26e9d5d 100644 --- a/atom/browser/native_window_gtk.cc +++ b/atom/browser/native_window_gtk.cc @@ -105,6 +105,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_, "window-state-event", + G_CALLBACK(OnWindowStateThunk), this); if (!has_frame_) { gtk_window_set_decorated(window_, false);