diff options
author | okan | 2014-09-08 20:11:22 +0000 |
---|---|---|
committer | okan | 2014-09-08 20:11:22 +0000 |
commit | 943a3f1272a3549265acbce2060801cb669396bc (patch) | |
tree | 3aed9fd559210c85c755f7fee645ebaae5b54cdd /xutil.c | |
parent | 25980c356984d6152dc3703f57d4680bb21c1f04 (diff) | |
download | cwm-943a3f1272a3549265acbce2060801cb669396bc.tar.gz |
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).
Diffstat (limited to 'xutil.c')
-rw-r--r-- | xutil.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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: xutil.c,v 1.91 2014/09/07 19:27:30 okan Exp $ + * $OpenBSD: xutil.c,v 1.92 2014/09/08 20:11:22 okan Exp $ */ #include <sys/param.h> @@ -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); |