From 4757b9af1177d472ed4a060530740db200481afd Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Mon, 25 Jan 2010 02:01:19 -0500 Subject: [PATCH] Set _NET_NUMBER_OF_DESKTOPS properly. --- cmd/wmii/ewmh.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/wmii/ewmh.c b/cmd/wmii/ewmh.c index b37906d3..6a0a0a61 100644 --- a/cmd/wmii/ewmh.c +++ b/cmd/wmii/ewmh.c @@ -488,7 +488,7 @@ ewmh_updateviews(void) { return; vector_pinit(&tags); - for(v=view, i=0; v; v=v->next) + for(v=view, i=0; v; v=v->next, i++) vector_ppush(&tags, v->name); vector_ppush(&tags, nil); changeprop_textlist(&scr.root, Net("DESKTOP_NAMES"), "UTF8_STRING", (char**)tags.ary);