From cbfc510fbf56c03f94c641c74d42d74be5456805 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 6 Aug 2008 21:25:06 +0200 Subject: [PATCH] client: change screen if screen is != Signed-off-by: Julien Danjou --- client.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client.c b/client.c index 9416dee91..3412f4ac7 100644 --- a/client.c +++ b/client.c @@ -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);