rem: checkEdgeResistance(wwin, &x, &y, off_x, off_y);
context: drawFrames(WWindow *wwin, LinkedList *list, int dx, int dy, int off_x, int off_y){    WWindow *tmpw;    int scr_width = wwin->screen_ptr->scr_width;    int scr_height = wwin->screen_ptr->scr_height;    int x, y;        if (!list) {        x = wwin->frame_x + dx;        y = wwin->frame_y + dy;        checkEdgeResistance(wwin, &x, &y, off_x, off_y);	drawTransparentFrame(wwin, x, y,			     wwin->frame->core->width, 			     wwin->frame->core->height);	    } else {	while (list) {	    tmpw = list->head;	    x = tmpw->frame_x + dx;	    y = tmpw->frame_y + dy;	    	    /* don't let windows become unreachable */	    	    if (x + (int)tmpw->frame->core->width < 20)		x = 20 - (int)tmpw->frame->core->width;	    else if (x + 20 > scr_width)		x = scr_width - 20;	    	    if (y + (int)tmpw->frame->core->height < 20)		y = 20 - (int)tmpw->frame->core->height;	    else if (y + 20 > scr_height)		y = scr_height - 20;	    	    drawTransparentFrame(tmpw, x, y, tmpw->frame->core->width,				 tmpw->frame->core->height);	    	    list = list->tail;	}    }}