Implement _NET_CLIENT_LIST_STACKING (from Thomas Admin), but

bottom-to-top order, as per spec (notified Thomas as well).
This commit is contained in:
okan
2015-08-24 15:42:57 +00:00
parent 97db17d056
commit dcfbc9e809
4 changed files with 26 additions and 0 deletions

View File

@@ -112,6 +112,7 @@ client_init(Window win, struct screen_ctx *sc)
TAILQ_INSERT_TAIL(&sc->clientq, cc, entry);
xu_ewmh_net_client_list(sc);
xu_ewmh_net_client_list_stacking(sc);
xu_ewmh_restore_net_wm_state(cc);
if (client_get_wm_state(cc) == IconicState)
@@ -152,6 +153,7 @@ client_delete(struct client_ctx *cc)
TAILQ_REMOVE(&sc->clientq, cc, entry);
xu_ewmh_net_client_list(sc);
xu_ewmh_net_client_list_stacking(sc);
if (cc->group != NULL)
TAILQ_REMOVE(&cc->group->clientq, cc, group_entry);