gtk: Connect to window-state-event, fixes #226.
This commit is contained in:
parent
7f496f1994
commit
a50d3bde5c
1 changed files with 2 additions and 0 deletions
|
@ -105,6 +105,8 @@ NativeWindowGtk::NativeWindowGtk(content::WebContents* web_contents,
|
||||||
G_CALLBACK(OnWindowDeleteEventThunk), this);
|
G_CALLBACK(OnWindowDeleteEventThunk), this);
|
||||||
g_signal_connect(window_, "focus-out-event",
|
g_signal_connect(window_, "focus-out-event",
|
||||||
G_CALLBACK(OnFocusOutThunk), this);
|
G_CALLBACK(OnFocusOutThunk), this);
|
||||||
|
g_signal_connect(window_, "window-state-event",
|
||||||
|
G_CALLBACK(OnWindowStateThunk), this);
|
||||||
|
|
||||||
if (!has_frame_) {
|
if (!has_frame_) {
|
||||||
gtk_window_set_decorated(window_, false);
|
gtk_window_set_decorated(window_, false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue