client: allow screen change only if xinerama is active
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
0348b0566e
commit
415defdba5
11
client.c
11
client.c
|
@ -1083,10 +1083,13 @@ luaA_client_newindex(lua_State *L)
|
||||||
FloatingPlacementList);
|
FloatingPlacementList);
|
||||||
break;
|
break;
|
||||||
case A_TK_SCREEN:
|
case A_TK_SCREEN:
|
||||||
i = luaL_checknumber(L, 3) - 1;
|
if(globalconf.screens_info->xinerama_is_active)
|
||||||
luaA_checkscreen(i);
|
{
|
||||||
if(i != (*c)->screen)
|
i = luaL_checknumber(L, 3) - 1;
|
||||||
screen_client_moveto(*c, i, true);
|
luaA_checkscreen(i);
|
||||||
|
if(i != (*c)->screen)
|
||||||
|
screen_client_moveto(*c, i, true);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case A_TK_HIDE:
|
case A_TK_HIDE:
|
||||||
b = luaA_checkboolean(L, 3);
|
b = luaA_checkboolean(L, 3);
|
||||||
|
|
Loading…
Reference in New Issue