1 --- gtk+-2.6.4/gdk/x11/gdkwindow-x11.c 2005-01-25 20:51:36.000000000 +0200
2 +++ gtk+-2.6.4/gdk/x11/gdkwindow-x11.c 2005-04-06 16:19:35.350164320 +0300
4 GdkToplevelX11 *toplevel;
9 private = (GdkWindowObject*) window;
10 toplevel = _gdk_x11_window_get_toplevel (window);
11 @@ -1295,6 +1296,12 @@
13 update_wm_hints (window, TRUE);
15 + /* If the window has _NET_WM_STATE key specified, use it as the property mode */
16 + propmode = (gint)g_object_get_data (G_OBJECT (window), "_NET_WM_STATE");
19 + propmode = PropModeReplace;
21 /* We set the spec hints regardless of whether the spec is supported,
22 * since it can't hurt and it's kind of expensive to check whether
24 @@ -1366,10 +1373,11 @@
25 XChangeProperty (xdisplay,
27 gdk_x11_get_xatom_by_name_for_display (display, "_NET_WM_STATE"),
28 - XA_ATOM, 32, PropModeReplace,
29 + XA_ATOM, 32, propmode,
34 + /* Don't delete the property, unless we are replacing it */
35 + else if (propmode == PropModeReplace )
37 XDeleteProperty (xdisplay,