mouse: fix uninit var

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-06-23 13:20:01 +02:00
parent c0796d2259
commit 723299ff5f
1 changed files with 2 additions and 2 deletions

View File

@ -769,7 +769,7 @@ mouse_client_resize_tiled(client_t *c)
/* for each motion event */
while(mouse_track_mouse_drag(&mouse_x, &mouse_y))
{
double mwfact, fact_x, fact_y;
double mwfact = 0, fact_x, fact_y;
/* calculate new master / rest ratio */
fact_x = (double) (mouse_x - area.x) / area.width;
@ -785,7 +785,7 @@ mouse_client_resize_tiled(client_t *c)
mwfact = 1. - fact_y;
/* keep mwfact within reasonable bounds */
mwfact = MIN( MAX( 0.01, mwfact), 0.99 );
mwfact = MIN(MAX( 0.01, mwfact), 0.99);
/* refresh layout */
if(fabs(tag->mwfact - mwfact) >= 0.01)