use sel->border instead of globalconf borders

This commit is contained in:
Julien Danjou 2008-01-02 11:37:16 +01:00
parent 6701d0d2be
commit 9e93857864
1 changed files with 4 additions and 4 deletions

View File

@ -889,8 +889,8 @@ uicb_client_togglemax(int screen, char *arg __attribute__ ((unused)))
&globalconf.screens[screen].padding);
if(sel)
client_maximize(sel, area.x, area.y,
area.width - 2 * globalconf.screens[screen].borderpx,
area.height - 2 * globalconf.screens[screen].borderpx, False);
area.width - 2 * sel->border,
area.height - 2 * sel->border, False);
}
/** Toggle vertical maximize for client
@ -909,7 +909,7 @@ uicb_client_toggleverticalmax(int screen, char *arg __attribute__ ((unused)))
if(sel)
client_maximize(sel, sel->x, area.y,
sel->w,
area.height - 2 * globalconf.screens[screen].borderpx, False);
area.height - 2 * sel->border, False);
}
@ -928,7 +928,7 @@ uicb_client_togglehorizontalmax(int screen, char *arg __attribute__ ((unused)))
if(sel)
client_maximize(sel, area.x, sel->y,
area.height - 2 * globalconf.screens[screen].borderpx,
area.height - 2 * sel->border,
sel->h, False);
}