root: fix screen in fake_input
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
0ca7a0fd71
commit
309932be32
2
root.c
2
root.c
|
@ -82,7 +82,7 @@ luaA_root_fake_input(lua_State *L)
|
||||||
y = luaL_checknumber(L, 5);
|
y = luaL_checknumber(L, 5);
|
||||||
if(lua_gettop(L) == 6 && !globalconf.xinerama_is_active)
|
if(lua_gettop(L) == 6 && !globalconf.xinerama_is_active)
|
||||||
{
|
{
|
||||||
int screen = luaL_checknumber(L, 6);
|
int screen = luaL_checknumber(L, 6) - 1;
|
||||||
luaA_checkscreen(screen);
|
luaA_checkscreen(screen);
|
||||||
root = xutil_screen_get(globalconf.connection, screen)->root;
|
root = xutil_screen_get(globalconf.connection, screen)->root;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue