From 26ba1526929931660ac22757ac752f15d5b64fb2 Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 8 Sep 2014 20:11:22 +0000 Subject: Remove duplicate client queue (mruq); instead, remove and take the global Clientq and place it inside screen_ctx since every client belongs to a screen, then use the same per screen clientq to track stacking order (the sole reason for mruq). --- xutil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xutil.c') diff --git a/xutil.c b/xutil.c index b490652..199119f 100644 --- a/xutil.c +++ b/xutil.c @@ -214,13 +214,13 @@ xu_ewmh_net_client_list(struct screen_ctx *sc) Window *winlist; int i = 0, j = 0; - TAILQ_FOREACH(cc, &Clientq, entry) + TAILQ_FOREACH(cc, &sc->clientq, entry) i++; if (i == 0) return; winlist = xcalloc(i, sizeof(*winlist)); - TAILQ_FOREACH(cc, &Clientq, entry) + TAILQ_FOREACH(cc, &sc->clientq, entry) winlist[j++] = cc->win; XChangeProperty(X_Dpy, sc->rootwin, ewmh[_NET_CLIENT_LIST], XA_WINDOW, 32, PropModeReplace, (unsigned char *)winlist, i); -- cgit 1.4.1