From 6439ab05974f254dc055059e43327d0cb529a13a Mon Sep 17 00:00:00 2001 From: Arnaud Fontaine Date: Sun, 30 Mar 2008 12:18:06 +0200 Subject: [PATCH] Fix unitialized variable Signed-off-by: Julien Danjou --- layout.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/layout.c b/layout.c index 85bae03b5..3f1a424cf 100644 --- a/layout.c +++ b/layout.c @@ -77,12 +77,14 @@ arrange(int screen) /* check that the mouse is on a window or not */ if(XQueryPointer(globalconf.display, RootWindow(globalconf.display, phys_screen), - &rootwin, &childwin, &x, &y, &di, &di, &dui) - && (rootwin == None || childwin == None || childwin == rootwin)) - window_root_grabbuttons(phys_screen); + &rootwin, &childwin, &x, &y, &di, &di, &dui)) + { + if(rootwin == None || childwin == None || childwin == rootwin) + window_root_grabbuttons(phys_screen); - globalconf.pointer_x = x; - globalconf.pointer_y = y; + globalconf.pointer_x = x; + globalconf.pointer_y = y; + } /* reset status */ globalconf.screens[screen].need_arrange = False;