refactored Sanders code somewhat

This commit is contained in:
arg@10ksloc.org
2006-07-19 13:52:31 +02:00
parent 79cd408844
commit 8af1d97332
3 changed files with 8 additions and 15 deletions

View File

@ -315,9 +315,9 @@ resize(Client *c, Bool inc, Corner sticky)
*c->w = c->maxw;
if(c->maxh && *c->h > c->maxh)
*c->h = c->maxh;
if(sticky == TopRight || sticky == BottomRight)
if(sticky == TopRight || sticky == BotRight)
*c->x = right - *c->w;
if(sticky == BottomLeft || sticky == BottomRight)
if(sticky == BotLeft || sticky == BotRight)
*c->y = bottom - *c->h;
resizetitle(c);
XSetWindowBorderWidth(dpy, c->win, 1);