aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ephy-state.c b/lib/ephy-state.c
index 245cc38b1..9bf28ebdc 100644
--- a/lib/ephy-state.c
+++ b/lib/ephy-state.c
@@ -64,8 +64,8 @@ ephy_state_save_window (GtkWidget *window,
gchar *buf;
state = gdk_window_get_state (GTK_WIDGET (window)->window);
- maximized = state && GDK_WINDOW_STATE_MAXIMIZED;
-
+ maximized = ((state & GDK_WINDOW_STATE_MAXIMIZED) > 0);
+
buf = g_strdup_printf (CONF_GUL_STATE_PATH "/%s/maximized",name);
eel_gconf_set_boolean (buf, maximized);
g_free (buf);