]> khamidou — GitHub mirrors - electron.git/commitdiff
gtk: Connect to window-state-event, fixes #226.
authorCheng Zhao <zcbenz@gmail.com>
Tue, 8 Apr 2014 01:32:44 +0000 (09:32 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Tue, 8 Apr 2014 01:32:44 +0000 (09:32 +0800)
atom/browser/native_window_gtk.cc

index 375f4d8252cd0ca704097f3e20680a10c2fcf16b..0b69b26e9d5d72a49add0a999aa2d981f2d3342f 100644 (file)
@@ -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);