rem: XSetWindowBorder(dpy, tmpw->frame->core->window, tmpw->screen_ptr->white_pixel); tmpw->flags.selected = 1; wSelectedWindows = list_cons(tmpw, wSelectedWindows);
add: wSelectWindow(tmpw, True);
context: selectWindowsInside(WScreen *scr, int x1, int y1, int x2, int y2){    WWindow *tmpw;        /* select the windows and put them in the selected window list */    tmpw = scr->focused_window;    while (tmpw != NULL) {	if (!(tmpw->flags.miniaturized || tmpw->flags.hidden)) {	    if ((tmpw->frame->workspace == scr->current_workspace		 || tmpw->window_flags.omnipresent)		&& (tmpw->frame_x >= x1) && (tmpw->frame_y >= y1) 		&& (tmpw->frame->core->width + tmpw->frame_x <= x2)		&& (tmpw->frame->core->height + tmpw->frame_y <= y2)) {		XSetWindowBorder(dpy, tmpw->frame->core->window, 				 tmpw->screen_ptr->white_pixel);		tmpw->flags.selected = 1;		wSelectedWindows = list_cons(tmpw, wSelectedWindows);	    }	}	tmpw = tmpw->prev;    }}