aboutsummaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorokan2015-08-24 15:42:57 +0000
committerokan2015-08-24 15:42:57 +0000
commitf507af43cc37948b1f83ba74c8200059d4bba742 (patch)
tree6629cf1dd78ec54bda03a6198f59318e4378efed /client.c
parente76666595f56078b393ce83cc4f32f2cfd5f24b9 (diff)
downloadcwm-f507af43cc37948b1f83ba74c8200059d4bba742.tar.gz
Implement _NET_CLIENT_LIST_STACKING (from Thomas Admin), but
bottom-to-top order, as per spec (notified Thomas as well).
Diffstat (limited to 'client.c')
-rw-r--r--client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/client.c b/client.c
index 6e8d5e0..cf23cda 100644
--- a/client.c
+++ b/client.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: client.c,v 1.204 2015/08/24 14:57:19 okan Exp $
+ * $OpenBSD: client.c,v 1.205 2015/08/24 15:42:57 okan Exp $
*/
#include <sys/types.h>
@@ -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);