root: fix screen in fake_input

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2009-05-11 08:16:40 +02:00
parent 0ca7a0fd71
commit 309932be32
1 changed files with 1 additions and 1 deletions

2
root.c
View File

@ -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;
} }