--- libwnck-2.18.0-orig/libwnck/tasklist.c	2007-03-12 19:48:28.000000000 +0100
+++ libwnck-2.18.0/libwnck/tasklist.c	2007-06-15 23:39:06.000000000 +0200
@@ -3127,6 +3127,10 @@
 
           return FALSE;
         } 
+      else if (event->button == 2)
+        {
+      	   wnck_window_close (task->window, gtk_get_current_event_time ());
+        }
       else if (event->button == 3)
         {
           if (task->action_menu)
