From 3202fd5226978c85de2f222cb7aa88522d22c13e Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Thu, 27 Dec 2018 08:52:08 +0100 Subject: [PATCH] client: keep ontop/fullscreen/above/below when setting the others Fixes https://github.com/awesomeWM/awesome/issues/667. --- objects/client.c | 28 ---------------------------- 1 file changed, 28 deletions(-) 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);