rem: wSelectWindow(wwin); }
add: wSelectWindow(wwin, !wwin->flags.selected); }
context: titlebarDblClick(WCoreWindow *sender, void *data, XEvent *event){    WWindow *wwin = data;    event->xbutton.state &= ValidModMask;    if (event->xbutton.button==Button1) {	if (event->xbutton.state == 0) {	    if (!wwin->window_flags.no_shadeable) {		/* shade window */		if (wwin->flags.shaded)		    wUnshadeWindow(wwin);		else		    wShadeWindow(wwin);	    }	} else {	    int dir = 0;	    if (event->xbutton.state & ControlMask)		dir |= MAX_VERTICAL;	                if (event->xbutton.state & ShiftMask) {		dir |= MAX_HORIZONTAL;                if (!(event->xbutton.state & ControlMask))                    wSelectWindow(wwin);            }	    /* maximize window */	    if (dir !=0 && !wwin->window_flags.no_resizable) {		if (wwin->flags.maximized) 		    wUnmaximizeWindow(wwin);		 else		    wMaximizeWindow(wwin, dir);	    }	}    } else if (event->xbutton.button==Button3) {	if (event->xbutton.state & MOD_MASK) {	    wHideOtherApplications(wwin);	}    } else if (event->xbutton.button==Button2) {	wSelectWindow(wwin);    } }