rem: if (dir!=0 && !WFLAGP(wwin, no_resizable)) {
add: if (dir!=0 && IS_RESIZABLE(wwin)) {
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 (!WFLAGP(wwin, 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, !wwin->flags.selected);            }	    /* maximize window */	    if (dir!=0 && !WFLAGP(wwin, no_resizable)) {		int ndir = dir ^ wwin->flags.maximized;                if (ndir != 0) {                    wMaximizeWindow(wwin, ndir);                } else {                    wUnmaximizeWindow(wwin);                }	    }	}    } else if (event->xbutton.button==Button3) {	if (event->xbutton.state & MOD_MASK) {	    wHideOtherApplications(wwin);	}    } else if (event->xbutton.button==Button2) {	wSelectWindow(wwin, !wwin->flags.selected);    } else if (event->xbutton.button == WINGsConfiguration.mouseWheelUp) {        wShadeWindow(wwin);    } else if (event->xbutton.button == WINGsConfiguration.mouseWheelDown) {        wUnshadeWindow(wwin);    }}