rem: XMapWindow(dpy, wwin->client_win); XMapWindow(dpy, wwin->frame->core->window); wClientSetState(wwin, NormalState, None); wRaiseFrame(wwin->frame->core);
add: if (wwin->screen_ptr->current_workspace == wwin->frame->workspace) { XMapWindow(dpy, wwin->client_win); XMapWindow(dpy, wwin->frame->core->window); wClientSetState(wwin, NormalState, None); wwin->flags.mapped=1; wRaiseFrame(wwin->frame->core); }
context: unhideWindow(WIcon *icon, int icon_x, int icon_y, WWindow *wwin, int animate,	     int bringToCurrentWS){    if (bringToCurrentWS)	wWindowChangeWorkspace(wwin, wwin->screen_ptr->current_workspace);    wwin->flags.hidden=0;    wwin->flags.mapped=1;        wSoundPlay(WSOUND_UNHIDE);#ifdef ANIMATIONS    if (!wwin->screen_ptr->flags.startup && !wPreferences.no_animations 	&& animate) {	animateResize(wwin->screen_ptr, icon_x, icon_y,		      icon->core->width, icon->core->height,		      wwin->frame_x, wwin->frame_y, 		      wwin->frame->core->width, wwin->frame->core->height,                      True);    }#endif    wwin->flags.skip_next_animation = 0;    XMapWindow(dpy, wwin->client_win);    XMapWindow(dpy, wwin->frame->core->window);    wClientSetState(wwin, NormalState, None);    wRaiseFrame(wwin->frame->core);    if (wwin->flags.inspector_open) {	wUnhideInspectorForWindow(wwin);    }    WMPostNotificationName(WMNChangedState, wwin, "hide");}