Index: window-menu.c
===================================================================
RCS file: /cvs/gnome/gnome-panel/applets/wncklet/window-menu.c,v
retrieving revision 1.32
diff -u -r1.32 window-menu.c
--- window-menu.c	4 Jan 2005 14:27:02 -0000	1.32
+++ window-menu.c	12 Jan 2005 21:31:15 -0000
@@ -206,6 +206,38 @@
 }
 
 static void
+window_menu_dimm_icon (GdkPixbuf *pixbuf)
+{
+  int x, y, pixel_stride, row_stride;
+  guchar *row, *pixels;
+  int w, h;
+
+  w = gdk_pixbuf_get_width (pixbuf);
+  h = gdk_pixbuf_get_height (pixbuf);
+
+  g_assert (gdk_pixbuf_get_has_alpha (pixbuf));
+  
+  pixel_stride = 4;
+
+  row = gdk_pixbuf_get_pixels (pixbuf);
+  row_stride = gdk_pixbuf_get_rowstride (pixbuf);
+
+  for (y = 0; y < h; y++)
+    {
+      pixels = row;
+
+      for (x = 0; x < w; x++)
+	{
+	  pixels[3] /= 2;
+	  
+	  pixels += pixel_stride;
+	}
+
+      row += row_stride;
+    }
+}
+
+static void
 window_menu_set_window_icon (WindowMenu *window_menu,
 			     GtkWidget  *image,
 			     WnckWindow *window,
@@ -245,6 +277,11 @@
 		freeme = pixbuf;
 	}
 
+	if (wnck_window_is_minimized (window)) {
+
+		window_menu_dimm_icon (pixbuf);
+	}
+
 	gtk_image_set_from_pixbuf (GTK_IMAGE (image), pixbuf);
 
 	if (freeme)
