client: change screen if screen is !=

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-08-06 21:25:06 +02:00
parent 171ece9918
commit cbfc510fbf
1 changed files with 2 additions and 1 deletions

View File

@ -1125,7 +1125,8 @@ luaA_client_newindex(lua_State *L)
case A_TK_SCREEN:
i = luaL_checknumber(L, 3) - 1;
luaA_checkscreen(i);
screen_client_moveto(*c, i, true);
if(i != (*c)->screen)
screen_client_moveto(*c, i, true);
break;
case A_TK_HIDE:
b = luaA_checkboolean(L, 3);