small stylistic changes

This commit is contained in:
Anselm R. Garbe 2006-05-10 15:24:09 +02:00
parent 987842a8bb
commit 9fdc055800
2 changed files with 5 additions and 2 deletions

View File

@ -516,7 +516,10 @@ resize_client(Client *c, XRectangle *r, Bool ignore_xcall)
match_sizehints(c);
if(!ignore_xcall) {
if(!idx_of_area(f->area) && c->rect.width >= rect.width && c->rect.height >= rect.height) {
if(!idx_of_area(f->area) &&
(c->rect.width >= rect.width) &&
(c->rect.height >= rect.height))
{
f->rect.x = -def.border;
f->rect.y = -height_of_bar();
}

View File

@ -155,8 +155,8 @@ handle_configurerequest(XEvent *e)
if(c->frame.size) {
Frame *f = c->frame.data[c->sel];
if(c->rect.width >= rect.width && c->rect.height >= rect.height) {
f->rect.x = wc.x = -def.border;
f->rect.y = wc.y = -height_of_bar();
f->rect.x = wc.x = -def.border;
}
else {
f->rect.x = wc.x = c->rect.x - def.border;