gtk: Connect to window-state-event, fixes #226.

This commit is contained in:
Cheng Zhao 2014-04-08 09:32:44 +08:00
parent 7f496f1994
commit a50d3bde5c

View 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);