rem: XSetWindowBorder(dpy, wwin->frame->core->window, wwin->screen_ptr->frame_border_pixel); wwin->flags.selected = 0; list_remove_head(&wSelectedWindows);
add: wSelectWindow(wwin, False);
context: wUnselectWindows(){    WWindow *wwin;        while (wSelectedWindows) {	wwin = wSelectedWindows->head;        if (wwin->flags.miniaturized && wwin->icon && wwin->icon->selected)            wIconSelect(wwin->icon);        XSetWindowBorder(dpy, wwin->frame->core->window,                         wwin->screen_ptr->frame_border_pixel);	wwin->flags.selected = 0;	list_remove_head(&wSelectedWindows);    }}