Index: src/window.c
===================================================================
RCS file: /cvs/gnome/metacity/src/window.c,v
retrieving revision 1.350
diff -p -u -r1.350 window.c
--- src/window.c	17 Oct 2004 04:28:29 -0000	1.350
+++ src/window.c	17 Oct 2004 04:41:59 -0000
@@ -1161,7 +1161,9 @@ 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->active_workspace->showing_desktop)
     {
       data[i] = window->display->atom_net_wm_state_hidden;
       ++i;
