aboutsummaryrefslogtreecommitdiffstats
path: root/xutil.c
diff options
context:
space:
mode:
authorokan2014-09-08 20:11:22 +0000
committerokan2014-09-08 20:11:22 +0000
commit943a3f1272a3549265acbce2060801cb669396bc (patch)
tree3aed9fd559210c85c755f7fee645ebaae5b54cdd /xutil.c
parent25980c356984d6152dc3703f57d4680bb21c1f04 (diff)
downloadcwm-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 '')
-rw-r--r--xutil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xutil.c b/xutil.c
index 4edf760..6c426a9 100644
--- a/xutil.c
+++ b/xutil.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: 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);