diff --git a/objects/client.c b/objects/client.c index 8541b415f..d198202e8 100644 --- a/objects/client.c +++ b/objects/client.c @@ -2078,13 +2078,6 @@ client_set_fullscreen(lua_State *L, int cidx, bool s) if(c->fullscreen != s) { /* become fullscreen! */ - if(s) - { - /* You can only be part of one of the special layers. */ - client_set_below(L, cidx, false); - client_set_above(L, cidx, false); - client_set_ontop(L, cidx, false); - } int abs_cidx = luaA_absindex(L, cidx); \ lua_pushstring(L, "fullscreen"); c->fullscreen = s; @@ -2183,13 +2176,6 @@ client_set_above(lua_State *L, int cidx, bool s) if(c->above != s) { - /* You can only be part of one of the special layers. */ - if(s) - { - client_set_below(L, cidx, false); - client_set_ontop(L, cidx, false); - client_set_fullscreen(L, cidx, false); - } c->above = s; stack_windows(); luaA_object_emit_signal(L, cidx, "property::above", 0); @@ -2208,13 +2194,6 @@ client_set_below(lua_State *L, int cidx, bool s) if(c->below != s) { - /* You can only be part of one of the special layers. */ - if(s) - { - client_set_above(L, cidx, false); - client_set_ontop(L, cidx, false); - client_set_fullscreen(L, cidx, false); - } c->below = s; stack_windows(); luaA_object_emit_signal(L, cidx, "property::below", 0); @@ -2251,13 +2230,6 @@ client_set_ontop(lua_State *L, int cidx, bool s) if(c->ontop != s) { - /* You can only be part of one of the special layers. */ - if(s) - { - client_set_above(L, cidx, false); - client_set_below(L, cidx, false); - client_set_fullscreen(L, cidx, false); - } c->ontop = s; stack_windows(); luaA_object_emit_signal(L, cidx, "property::ontop", 0);