   
 ! 	if((c=wintoclient(ev->window)))
 ! 		unmanage(c,False);
+! 	if(ev->window!=tray)
+! 		{
+! 			if(ev->window==ticon[0])tico[0]=0;
+! 			else if(ev->window==ticon[1])tico[1]=0;
+! 			else if(ev->window==ticon[2])tico[2]=0;
+! 			else if(ev->window==ticon[3])tico[3]=0;
+! 			else if(ev->window==ticon[4])tico[4]=0;
+! 			twfull=False;
+! 		}
   }
   
   void

*** dwm.c	2011-05-30 00:05:45.926195438 -0500
--- DWM.c	2011-05-31 07:44:22.148026618 -0500
***************
*** 1,25 ****
- /* See LICENSE file for copyright and license details.

  			return;
  	detach(c);
  	attach(c);
--- 1967,2033 ----
  	Client *c;
  	Monitor *m;
  
