client: keep ontop/fullscreen/above/below when setting the others

Fixes https://github.com/awesomeWM/awesome/issues/667.
This commit is contained in:
Daniel Hahler 2018-12-27 08:52:08 +01:00
parent 7d0976912e
commit 3202fd5226
1 changed files with 0 additions and 28 deletions

View File

@ -2078,13 +2078,6 @@ client_set_fullscreen(lua_State *L, int cidx, bool s)
if(c->fullscreen != s) if(c->fullscreen != s)
{ {
/* become fullscreen! */ /* 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); \ int abs_cidx = luaA_absindex(L, cidx); \
lua_pushstring(L, "fullscreen"); lua_pushstring(L, "fullscreen");
c->fullscreen = s; c->fullscreen = s;
@ -2183,13 +2176,6 @@ client_set_above(lua_State *L, int cidx, bool s)
if(c->above != 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; c->above = s;
stack_windows(); stack_windows();
luaA_object_emit_signal(L, cidx, "property::above", 0); 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) 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; c->below = s;
stack_windows(); stack_windows();
luaA_object_emit_signal(L, cidx, "property::below", 0); 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) 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; c->ontop = s;
stack_windows(); stack_windows();
luaA_object_emit_signal(L, cidx, "property::ontop", 0); luaA_object_emit_signal(L, cidx, "property::ontop", 0);