From 415defdba592bf022ae9a24256048a33c05d9080 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Sun, 10 Aug 2008 10:32:59 +0200 Subject: [PATCH] client: allow screen change only if xinerama is active Signed-off-by: Julien Danjou --- client.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/client.c b/client.c index b594977a..989e22d6 100644 --- a/client.c +++ b/client.c @@ -1083,10 +1083,13 @@ luaA_client_newindex(lua_State *L) FloatingPlacementList); break; case A_TK_SCREEN: - i = luaL_checknumber(L, 3) - 1; - luaA_checkscreen(i); - if(i != (*c)->screen) - screen_client_moveto(*c, i, true); + if(globalconf.screens_info->xinerama_is_active) + { + i = luaL_checknumber(L, 3) - 1; + luaA_checkscreen(i); + if(i != (*c)->screen) + screen_client_moveto(*c, i, true); + } break; case A_TK_HIDE: b = luaA_checkboolean(L, 3);