diff --git a/root.c b/root.c index 1c4962b1..a48fd131 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; }