From 97d2c319ce4b9ccaf77dd29bc628931fa5e6d8e1 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 30 Jun 2006 15:54:29 -0400 Subject: [PATCH] Added '# ' to /tag/x/index --- cmd/wm/view.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cmd/wm/view.c b/cmd/wm/view.c index 3270145c..c88559ab 100644 --- a/cmd/wm/view.c +++ b/cmd/wm/view.c @@ -297,9 +297,15 @@ view_index(View *v) { len = BUFFER_SIZE; buf_i = 0; for((a = v->area), (a_i = 0); a; (a=a->next), (a_i++)) { + if(a->floating) + n = snprintf(&buffer[buf_i], len, "# ~ %d\n", a->rect.width); + else + n = snprintf(&buffer[buf_i], len, "# %d %d\n", a_i, a->rect.width); + buf_i += n; + len -= n; for(f=a->frame; f && len > 0; f=f->anext) { XRectangle *r = &f->rect; - if(a_i == 0) + if(a->floating) n = snprintf(&buffer[buf_i], len, "~ %d %d %d %d %d %s\n", idx_of_client(f->client), r->x, r->y, r->width, r->height, @@ -307,7 +313,7 @@ view_index(View *v) { else n = snprintf(&buffer[buf_i], len, "%d %d %d %s\n", a_i, idx_of_client(f->client), - r->width, f->client->props); + r->height, f->client->props); if(len - n < 0) return (unsigned char *)buffer; buf_i += n;