summaryrefslogtreecommitdiff
path: root/gdk
diff options
context:
space:
mode:
authorCody Russell <bratsche@gnome.org>2008-05-25 23:09:09 +0000
committerCody Russell <bratsche@src.gnome.org>2008-05-25 23:09:09 +0000
commit030ff5b10a981627e11635b8bae44a8d6b8c1811 (patch)
treefb0315dc8f5fd56dbeb673109a4ab8f3d953ea64 /gdk
parentcd7376dd5e4be396a592d24832da3b129b429ee6 (diff)
downloadgtk+-030ff5b10a981627e11635b8bae44a8d6b8c1811.tar.gz
Bug 522269 - Evince windows sometimes incorrectly unmaximized, caused by
2008-05-25 Cody Russell <bratsche@gnome.org> Bug 522269 - Evince windows sometimes incorrectly unmaximized, caused by missing flag initialization * gdk/x11/gdkwindow-x11.c (set_initial_hints): Initialize top-level private flags correctly. Patch by Danny Baumann. svn path=/trunk/; revision=20163
Diffstat (limited to 'gdk')
-rw-r--r--gdk/x11/gdkwindow-x11.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdk/x11/gdkwindow-x11.c b/gdk/x11/gdkwindow-x11.c
index b56f4f1d23..ddecb24c04 100644
--- a/gdk/x11/gdkwindow-x11.c
+++ b/gdk/x11/gdkwindow-x11.c
@@ -1314,6 +1314,7 @@ set_initial_hints (GdkWindow *window)
atoms[i] = gdk_x11_get_xatom_by_name_for_display (display,
"_NET_WM_STATE_MAXIMIZED_HORZ");
++i;
+ toplevel->have_maxhorz = toplevel->have_maxvert = TRUE;
}
if (private->state & GDK_WINDOW_STATE_ABOVE)
@@ -1335,6 +1336,7 @@ set_initial_hints (GdkWindow *window)
atoms[i] = gdk_x11_get_xatom_by_name_for_display (display,
"_NET_WM_STATE_STICKY");
++i;
+ toplevel->have_sticky = TRUE;
}
if (private->state & GDK_WINDOW_STATE_FULLSCREEN)
@@ -1342,6 +1344,7 @@ set_initial_hints (GdkWindow *window)
atoms[i] = gdk_x11_get_xatom_by_name_for_display (display,
"_NET_WM_STATE_FULLSCREEN");
++i;
+ toplevel->have_fullscreen = TRUE;
}
if (private->modal_hint)
@@ -1388,6 +1391,7 @@ set_initial_hints (GdkWindow *window)
gdk_x11_get_xatom_by_name_for_display (display, "_NET_WM_DESKTOP"),
XA_CARDINAL, 32, PropModeReplace,
(guchar*) atoms, 1);
+ toplevel->on_all_desktops = TRUE;
}
else
{