magnifier: simplify formula

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-23 08:40:07 +02:00
parent fdddc839e8
commit e753be131d
2 changed files with 3 additions and 3 deletions

View File

@ -48,8 +48,8 @@ layout_magnifier(int screen)
if(!focus)
goto bailout;
geometry.width = sqrt(area.width * area.width * curtags[0]->mwfact);
geometry.height = sqrt(area.height * area.height * curtags[0]->mwfact);
geometry.width = area.width * sqrt(curtags[0]->mwfact);
geometry.height = area.height * sqrt(curtags[0]->mwfact);
geometry.x = area.x + (area.width - geometry.width) / 2;
geometry.y = area.y + (area.height - geometry.height) / 2;
client_resize(focus, geometry, focus->honorsizehints);