[hackers] [wmii] Fix colmode issues with Xinerama screens. Closes issue #135. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Mon, 12 Oct 2009 22:03:06 +0000 (UTC)

changeset: 2534:b3a95c393cc0
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Mon Oct 12 18:02:58 2009 -0400
files: cmd/wmii/message.c
description:
Fix colmode issues with Xinerama screens. Closes issue #135.

diff -r 7757c0dac179 -r b3a95c393cc0 cmd/wmii/message.c
--- a/cmd/wmii/message.c Sun Oct 11 20:17:31 2009 -0400
+++ b/cmd/wmii/message.c Mon Oct 12 18:02:58 2009 -0400
@@ -351,6 +351,8 @@
                         return nil;
                 s = p;
         }
+ else if(!strcmp(s, "sel"))
+ return v->sel;
 
         if(!strcmp(s, "sel")) {
                 if(scrn != v->selscreen)
@@ -688,7 +690,7 @@
 char*
 readctl_view(View *v) {
         Area *a;
- uint i;
+ int s;
 
         bufclear();
         bufprint("%s\n", v->name);
@@ -703,8 +705,8 @@
         if(v->sel->sel)
                 bufprint("select client %C\n", v->sel->sel->client);
 
- for(a = v->firstarea, i = 1; a; a = a->next, i++)
- bufprint("colmode %d %s\n", i, column_getmode(a));
+ foreach_area(v, s, a)
+ bufprint("colmode %a %s\n", a, column_getmode(a));
         return buffer;
 }
 
Received on Mon Oct 12 2009 - 22:03:06 UTC

This archive was generated by hypermail 2.2.0 : Mon Oct 12 2009 - 22:12:05 UTC