add: if (!wPreferences.disable_miniwindows) { RemoveFromStackList(wwin->icon->core);  wIconDestroy(wwin->icon); wwin->icon = NULL; }
context: wDeiconifyWindow(WWindow  *wwin){    wWindowChangeWorkspace(wwin, wwin->screen_ptr->current_workspace);    if (!wwin->flags.miniaturized)	return;    if (wwin->transient_for != None 	&& wwin->transient_for != wwin->screen_ptr->root_win) {	WWindow *owner = recursiveTransientFor(wwin);	if (owner && owner->flags.miniaturized) {	    wDeiconifyWindow(owner);	    wSetFocusTo(wwin->screen_ptr, wwin);	    wRaiseFrame(wwin->frame->core);	    return;	}    }    wwin->flags.miniaturized = 0;    if (!wwin->flags.shaded)	wwin->flags.mapped = 1;    if (wwin->icon->selected)        wIconSelect(wwin->icon);    XUnmapWindow(dpy, wwin->icon->core->window);#ifdef WMSOUND    wSoundPlay(WMSOUND_DEICONIFY);#endif    /* if the window is in another workspace, do it silently */#ifdef ANIMATIONS    if (!wwin->screen_ptr->flags.startup && !wPreferences.no_animations 	&& !wwin->flags.skip_next_animation) {	animateResize(wwin->screen_ptr, wwin->icon_x, wwin->icon_y,		      wwin->icon->core->width, wwin->icon->core->height,		      wwin->frame_x, wwin->frame_y, 		      wwin->frame->core->width, wwin->frame->core->height,		      False);    }#endif /* ANIMATIONS */    wwin->flags.skip_next_animation = 0;    XGrabServer(dpy);    if (!wwin->flags.shaded) {	XMapWindow(dpy, wwin->client_win);    }    XMapWindow(dpy, wwin->frame->core->window);    wRaiseFrame(wwin->frame->core);    if (!wwin->flags.shaded) {	wClientSetState(wwin, NormalState, None);    }    mapTransientsFor(wwin);    RemoveFromStackList(wwin->icon->core);/*    removeIconGrabs(wwin->icon);*/    wIconDestroy(wwin->icon);    wwin->icon = NULL;    XUngrabServer(dpy);    if (wPreferences.focus_mode==WKF_CLICK	|| wPreferences.focus_mode==WKF_SLOPPY)      wSetFocusTo(wwin->screen_ptr, wwin);#ifdef ANIMATIONS    if (!wwin->screen_ptr->flags.startup) {	Window clientwin = wwin->client_win;	    	XSync(dpy, 0);    	processEvents(XPending(dpy));		if (!wWindowFor(clientwin))	    return;    }#endif        if (wPreferences.auto_arrange_icons) {        wArrangeIcons(wwin->screen_ptr, True);    }#ifdef GNOME_STUFF    wGNOMEUpdateClientStateHint(wwin, False);#endif#ifdef KWM_HINTS    wKWMUpdateClientStateHint(wwin, KWMIconifiedFlag);    wKWMSendEventMessage(wwin, WKWMChangedClient);#endif    UpdateSwitchMenu(wwin->screen_ptr, wwin, ACTION_CHANGE_STATE);}