Index: src/window.c
===================================================================
RCS file: /cvs/gnome/metacity/src/window.c,v
retrieving revision 1.337
diff -p -u -r1.337 window.c
--- src/window.c	8 Aug 2004 00:02:02 -0000	1.337
+++ src/window.c	8 Aug 2004 03:33:45 -0000
@@ -1164,7 +1164,7 @@ set_net_wm_state (MetaWindow *window)
       data[i] = window->display->atom_net_wm_state_fullscreen;
       ++i;
     }
-  if (window->shaded || window->minimized)
+  if (window->shaded || window->minimized || !window->screen->showing_desktop)
     {
       data[i] = window->display->atom_net_wm_state_hidden;
       ++i;
