diff --git a/objects/client.c b/objects/client.c index 39cdf9fe..cba7f882 100644 --- a/objects/client.c +++ b/objects/client.c @@ -1253,8 +1253,6 @@ luaA_client_lower(lua_State *L) for(client_t *tc = c->transient_for; tc; tc = tc->transient_for) stack_client_push(tc); - stack_windows(); - return 0; } diff --git a/objects/client.h b/objects/client.h index 803eb947..784b72a3 100644 --- a/objects/client.h +++ b/objects/client.h @@ -212,7 +212,6 @@ client_raise(client_t *c) /* Push c on top of the stack. */ stack_client_append(c); - stack_windows(); } /** Check if a client has fixed size. diff --git a/stack.c b/stack.c index 0e5a63e9..3fe64b03 100644 --- a/stack.c +++ b/stack.c @@ -34,6 +34,7 @@ stack_client_remove(client_t *c) break; } ewmh_update_net_client_list_stacking(c->phys_screen); + stack_windows(); } /** Push the client at the beginning of the client stack. @@ -45,6 +46,7 @@ stack_client_push(client_t *c) stack_client_remove(c); client_array_push(&globalconf.stack, c); ewmh_update_net_client_list_stacking(c->phys_screen); + stack_windows(); } /** Push the client at the end of the client stack. @@ -56,6 +58,7 @@ stack_client_append(client_t *c) stack_client_remove(c); client_array_append(&globalconf.stack, c); ewmh_update_net_client_list_stacking(c->phys_screen); + stack_windows(); } static bool need_stack_refresh = false;