*** FvwmIconBox.c.orig	Wed Jun 29 14:21:21 1994
--- FvwmIconBox.c	Wed Jun 29 13:54:50 1994
***************
*** 69,75 ****
  char *Fore = "#82dfe3";
  char *IconBack = "#cfcfcf";
  char *IconFore = "black";
! char *ActIconBack = "5f9eao";
  char *ActIconFore = "black";
  char *font_string = "fixed";
  
--- 69,75 ----
  char *Fore = "#82dfe3";
  char *IconBack = "#cfcfcf";
  char *IconFore = "black";
! char *ActIconBack = "white";
  char *ActIconFore = "black";
  char *font_string = "fixed";
  
***************
*** 510,515 ****
--- 510,516 ----
    unsigned long plane = 1;
    int hr, len;
    int diff, lm ,w, h, tw;
+   char label[256];
  
    hr = ICON_RELIEF/2;
  
***************
*** 534,540 ****
  	XCopyArea(dpy, item->iconPixmap, item->icon_pixmap_w, NormalGC,
  		  0, 0, item->icon_w, item->icon_h, hr, hr);
  
!       if (item->flags & ICONIFIED){
  	if (Hilite == item)
  	  XSetForeground(dpy, NormalGC, act_icon_back_pix);
  	else
--- 535,541 ----
  	XCopyArea(dpy, item->iconPixmap, item->icon_pixmap_w, NormalGC,
  		  0, 0, item->icon_w, item->icon_h, hr, hr);
  
! /*      if (item->flags & ICONIFIED){
  	if (Hilite == item)
  	  XSetForeground(dpy, NormalGC, act_icon_back_pix);
  	else
***************
*** 550,556 ****
  	else
  	  XSetForeground(dpy, NormalGC, icon_fore_pix);
        }
!     }
      if (!(item->flags & SHAPED_ICON)){
        if (item->icon_w > 0 && item->icon_h > 0)
  	RelieveWindow(item->icon_pixmap_w, 0, 0, item->icon_w
--- 551,557 ----
  	else
  	  XSetForeground(dpy, NormalGC, icon_fore_pix);
        }
!       */    }
      if (!(item->flags & SHAPED_ICON)){
        if (item->icon_w > 0 && item->icon_h > 0)
  	RelieveWindow(item->icon_pixmap_w, 0, 0, item->icon_w
***************
*** 570,577 ****
      w = max_icon_width + ICON_RELIEF;
      h = max_icon_height + ICON_RELIEF;
      
!     len = strlen(item->name);
!     tw = XTextWidth(font, item->name, len);
      diff = max_icon_width + ICON_RELIEF - tw;
      lm = diff/2;
      lm = lm > 4 ? lm : 4;
--- 571,583 ----
      w = max_icon_width + ICON_RELIEF;
      h = max_icon_height + ICON_RELIEF;
      
!     if (item->flags & ICONIFIED){
!       sprintf(label, "(%s)", item->name);
!     }else
!       strcpy(label, item->name);
!     
!     len = strlen(label);
!     tw = XTextWidth(font, label, len);
      diff = max_icon_width + ICON_RELIEF - tw;
      lm = diff/2;
      lm = lm > 4 ? lm : 4;
***************
*** 585,591 ****
  			font->descent); 
        XClearWindow(dpy, item->IconWin);
        XDrawString(dpy, item->IconWin, NormalGC, lm, 3 + font->ascent,
! 		  item->name, len); 
        RelieveWindow(item->IconWin, 0, 0,
  		    max(tw + 8, w), 6 + font->ascent +
  		    font->descent, IconReliefGC, IconShadowGC);  
--- 591,597 ----
  			font->descent); 
        XClearWindow(dpy, item->IconWin);
        XDrawString(dpy, item->IconWin, NormalGC, lm, 3 + font->ascent,
! 		  label, len); 
        RelieveWindow(item->IconWin, 0, 0,
  		    max(tw + 8, w), 6 + font->ascent +
  		    font->descent, IconReliefGC, IconShadowGC);  
***************
*** 594,600 ****
  			w, 6 + font->ascent + font->descent);
        XClearWindow(dpy, item->IconWin);
        XDrawString(dpy, item->IconWin, NormalGC, lm, 3 + font->ascent,
! 		  item->name, len); 
        RelieveWindow(item->IconWin, 0, 0,
  		    w, 6 + font->ascent + font->descent, 
  		    IconReliefGC, IconShadowGC);  
--- 600,606 ----
  			w, 6 + font->ascent + font->descent);
        XClearWindow(dpy, item->IconWin);
        XDrawString(dpy, item->IconWin, NormalGC, lm, 3 + font->ascent,
! 		  label, len); 
        RelieveWindow(item->IconWin, 0, 0,
  		    w, 6 + font->ascent + font->descent, 
  		    IconReliefGC, IconShadowGC);  
***************
*** 1932,1938 ****
    case M_ICONIFY:
    case M_DEICONIFY:
      if (UP && (tmp = SetFlag(body[0], type)) != NULL)
!       RedrawIcon(tmp, 1);
      break;
    case M_END_WINDOWLIST:
      GetIconwinSize(&diffx, &diffy);
--- 1938,1944 ----
    case M_ICONIFY:
    case M_DEICONIFY:
      if (UP && (tmp = SetFlag(body[0], type)) != NULL)
!       RedrawIcon(tmp, 2);
      break;
    case M_END_WINDOWLIST:
      GetIconwinSize(&diffx, &diffy);
-----cut here-----
