rem: if (*y < -height + 10) *y = -tol_h, moved = 1; else if (*y >= scr->scr_height - 10) *y = scr->scr_height - tol_h - 1, moved = 1;
add: if (*y < sy1 - height + 10) *y = sy1 - tol_h, moved = 1; else if (*y >= sy2 - 10) *y = sy2 - tol_h - 1, moved = 1;
context: wScreenBringInside(WScreen *scr, int *x, int *y, int width, int height){    int moved = 0;    int tol_w, tol_h;    if (width > 20)	tol_w = width/2;    else	tol_w = 20;    if (height > 20)	tol_h = height/2;    else	tol_h = 20;    if (*x+width < 10)	*x = -tol_w, moved = 1;    else if (*x >= scr->scr_width - 10)	*x = scr->scr_width - tol_w - 1, moved = 1;    if (*y < -height + 10)	*y = -tol_h, moved = 1;    else if (*y >= scr->scr_height - 10)	*y = scr->scr_height - tol_h - 1, moved = 1;    return moved;}