[hackers] [wmii] Update /tag/*/index to be more useful on Xinerama. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Sat, 3 Oct 2009 02:04:22 +0000 (UTC)

changeset: 2517:1fb4c1987676
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Fri Oct 02 22:03:54 2009 -0400
files: cmd/wmii/area.c cmd/wmii/view.c
description:
Update /tag/*/index to be more useful on Xinerama.

diff -r 51be0d63ef50 -r 1fb4c1987676 cmd/wmii/area.c
--- a/cmd/wmii/area.c Fri Oct 02 21:44:50 2009 -0400
+++ b/cmd/wmii/area.c Fri Oct 02 22:03:54 2009 -0400
@@ -58,6 +58,8 @@
                 return fmtstrcpy(f, "<nil>");
         if(a->floating)
                 return fmtstrcpy(f, "~");
+ if(a->screen > 0 || (f->flags & FmtSharp))
+ return fmtprint(f, "%d:%d", a->screen, area_idx(a));
         return fmtprint(f, "%d", area_idx(a));
 }
 
diff -r 51be0d63ef50 -r 1fb4c1987676 cmd/wmii/view.c
--- a/cmd/wmii/view.c Fri Oct 02 21:44:50 2009 -0400
+++ b/cmd/wmii/view.c Fri Oct 02 22:03:54 2009 -0400
@@ -601,28 +601,26 @@
         Rectangle *r;
         Frame *f;
         Area *a;
- int i, s;
+ int s;
 
         bufclear();
- i = 0;
         foreach_area(v, s, a) {
- i++;
                 if(a->floating)
- bufprint("# ~ %d %d\n", Dx(a->r), Dy(a->r));
+ bufprint("# %a %d %d\n", a, Dx(a->r), Dy(a->r));
                 else
- bufprint("# %d %d %d\n", i, a->r.min.x, Dx(a->r));
+ bufprint("# %a %d %d\n", a, a->r.min.x, Dx(a->r));
 
                 for(f=a->frame; f; f=f->anext) {
                         r = &f->r;
                         if(a->floating)
- bufprint("~ %C %d %d %d %d %s\n",
- f->client,
+ bufprint("%a %C %d %d %d %d %s\n",
+ a, f->client,
                                                 r->min.x, r->min.y,
                                                 Dx(*r), Dy(*r),
                                                 f->client->props);
                         else
- bufprint("%d %C %d %d %s\n",
- i, f->client,
+ bufprint("%a %C %d %d %s\n",
+ a, f->client,
                                                 r->min.y, Dy(*r),
                                                 f->client->props);
                 }
Received on Sat Oct 03 2009 - 02:04:22 UTC

This archive was generated by hypermail 2.2.0 : Sat Oct 03 2009 - 02:12:05 UTC