Index: src/window.c
===================================================================
RCS file: /cvs/gnome/metacity/src/window.c,v
retrieving revision 1.365
diff -p -u -r1.365 window.c
--- src/window.c	26 Jan 2005 23:25:05 -0000	1.365
+++ src/window.c	27 Jan 2005 06:19:42 -0000
@@ -1131,7 +1131,7 @@ set_net_wm_state (MetaWindow *window)
       data[i] = window->display->atom_net_wm_state_fullscreen;
       ++i;
     }
-  if (!window_showing_on_its_workspace (window))
+  if (!window_showing_on_its_workspace (window) || window->shaded)
     {
       data[i] = window->display->atom_net_wm_state_hidden;
       ++i;
