From 309932be3259e86e2e3b5f8d97728e8858aa032b Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 11 May 2009 08:16:40 +0200 Subject: [PATCH] root: fix screen in fake_input Signed-off-by: Julien Danjou --- root.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root.c b/root.c index 1c4962b18..a48fd1318 100644 --- a/root.c +++ b/root.c @@ -82,7 +82,7 @@ luaA_root_fake_input(lua_State *L) y = luaL_checknumber(L, 5); 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); root = xutil_screen_get(globalconf.connection, screen)->root; }