Fix unitialized variable
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
0b678413f3
commit
6439ab0597
6
layout.c
6
layout.c
|
@ -77,12 +77,14 @@ arrange(int screen)
|
||||||
/* check that the mouse is on a window or not */
|
/* check that the mouse is on a window or not */
|
||||||
if(XQueryPointer(globalconf.display,
|
if(XQueryPointer(globalconf.display,
|
||||||
RootWindow(globalconf.display, phys_screen),
|
RootWindow(globalconf.display, phys_screen),
|
||||||
&rootwin, &childwin, &x, &y, &di, &di, &dui)
|
&rootwin, &childwin, &x, &y, &di, &di, &dui))
|
||||||
&& (rootwin == None || childwin == None || childwin == rootwin))
|
{
|
||||||
|
if(rootwin == None || childwin == None || childwin == rootwin)
|
||||||
window_root_grabbuttons(phys_screen);
|
window_root_grabbuttons(phys_screen);
|
||||||
|
|
||||||
globalconf.pointer_x = x;
|
globalconf.pointer_x = x;
|
||||||
globalconf.pointer_y = y;
|
globalconf.pointer_y = y;
|
||||||
|
}
|
||||||
|
|
||||||
/* reset status */
|
/* reset status */
|
||||||
globalconf.screens[screen].need_arrange = False;
|
globalconf.screens[screen].need_arrange = False;
|
||||||
|
|
Loading…
Reference in New Issue