client: change screen if screen is !=
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
171ece9918
commit
cbfc510fbf
1
client.c
1
client.c
|
@ -1125,6 +1125,7 @@ luaA_client_newindex(lua_State *L)
|
||||||
case A_TK_SCREEN:
|
case A_TK_SCREEN:
|
||||||
i = luaL_checknumber(L, 3) - 1;
|
i = luaL_checknumber(L, 3) - 1;
|
||||||
luaA_checkscreen(i);
|
luaA_checkscreen(i);
|
||||||
|
if(i != (*c)->screen)
|
||||||
screen_client_moveto(*c, i, true);
|
screen_client_moveto(*c, i, true);
|
||||||
break;
|
break;
|
||||||
case A_TK_HIDE:
|
case A_TK_HIDE:
|
||||||
|
|
Loading…
Reference in New Issue