summaryrefslogtreecommitdiff
path: root/endless/eoswindow.c
diff options
context:
space:
mode:
authorMatt Watson <mattdangerw@gmail.com>2014-02-05 13:00:17 -0800
committerMatt Watson <mattdangerw@gmail.com>2014-02-05 13:00:17 -0800
commit8c2151a225b7fa0f3d208e6880736a4e3e94cb55 (patch)
treeb5b891e30363437ab0b04f9a9828a54db1b94c27 /endless/eoswindow.c
parent024886a49afbf4756440a7744548e482e118820b (diff)
Dont block the default window-state-event handler
We snoop on window state events to update the maximize button, but we were accidentally blocking the default handler. Semi maximizing wasn't working properly, maybe other things [endlessm/eos-sdk#546]
Diffstat (limited to 'endless/eoswindow.c')
-rw-r--r--endless/eoswindow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/endless/eoswindow.c b/endless/eoswindow.c
index 0b280a3..57981e3 100644
--- a/endless/eoswindow.c
+++ b/endless/eoswindow.c
@@ -752,7 +752,7 @@ on_close_clicked_cb (GtkWidget *top_bar,
gtk_window_close (GTK_WINDOW (self));
}
-static void
+static gboolean
on_window_state_event_cb (GtkWidget *widget,
GdkEventWindowState *event)
{
@@ -761,6 +761,7 @@ on_window_state_event_cb (GtkWidget *widget,
GdkWindowState window_state = event->new_window_state;
priv->maximized = window_state & GDK_WINDOW_STATE_MAXIMIZED;
eos_top_bar_update_window_maximized (EOS_TOP_BAR (priv->top_bar), priv->maximized);
+ return FALSE;
}
/* Make sure that the edge finishing does not catch input events */