[hackers] [wmii] Fix updating tags via /client/*/tags. Closes issue #200. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Tue, 29 Jun 2010 17:41:06 +0000 (UTC)

changeset: 2750:cc59a43e4472
tag: tip
user: Kris Maglione <kris_AT_suckless.org>
date: Tue Jun 29 13:40:51 2010 -0400
files: cmd/wmii/fs.c mk/python.mk rc/wmiirc.sh
description:
Fix updating tags via /client/*/tags. Closes issue #200.

diff -r 44a34e4e7272 -r cc59a43e4472 cmd/wmii/fs.c
--- a/cmd/wmii/fs.c Mon Jun 28 11:54:55 2010 -0400
+++ b/cmd/wmii/fs.c Tue Jun 29 13:40:51 2010 -0400
@@ -497,6 +497,15 @@
                 return;
         }
 
+ switch(f->tab.type) {
+ case FsFCtags:
+ r->ofcall.io.count = r->ifcall.io.count;
+ ixp_srv_data2cstring(r);
+ client_applytags(f->p.client, r->ifcall.io.data);
+ ixp_respond(r, nil);
+ return;
+ }
+
         t = &actiontab[f->tab.type];
         if(f->tab.type < nelem(actiontab)) {
                 if(t->msg) {
diff -r 44a34e4e7272 -r cc59a43e4472 mk/python.mk
--- a/mk/python.mk Mon Jun 28 11:54:55 2010 -0400
+++ b/mk/python.mk Tue Jun 29 13:40:51 2010 -0400
@@ -6,7 +6,7 @@
 .py.install:
         echo PYTHON install $* $(PYPREFIX)
         DESTDIR=$(DESTDIR); \
- $(DEBUG) $(PYTHON) $< install -cO1 --root=$${DESTDIR:-/} $(PYPREFIX)
+ $(DEBUG) $(PYTHON) $< install -c --root=$${DESTDIR:-/} $(PYPREFIX)
 pyclean:
         echo CLEAN build/
         rm -rf build
diff -r 44a34e4e7272 -r cc59a43e4472 rc/wmiirc.sh
--- a/rc/wmiirc.sh Mon Jun 28 11:54:55 2010 -0400
+++ b/rc/wmiirc.sh Tue Jun 29 13:40:51 2010 -0400
@@ -131,7 +131,7 @@
         for c in $clients; do
                 if [ "$tag" = "$(wmiir read /client/$c/tags)" ]
                 then wmiir xwrite /client/$c/ctl kill
- else wmiir xwrite /client/$c/tags -$tag
+ else wmiir xwrite /client/$c/ctl tags -$tag
                 fi
                 [ "$tag" = "$(wi_seltag)" ] &&
                         wmiir xwrite /ctl view $(wi_tags | wi_nexttag)
@@ -230,7 +230,7 @@
         wmiir xwrite /ctl view $(wi_tags | wimenu -h "${hist}.tags" -n 50) &
 Key $MODKEY-Shift-t # Retag the selected client
         # Assumes left-to-right order of evaluation
- wmiir xwrite /client/$(wi_selclient)/tags $(wi_tags | wimenu -h "${hist}.tags" -n 50) &
+ wmiir xwrite /client/$(wi_selclient)/ctl tags $(wi_tags | wimenu -h "${hist}.tags" -n 50) &
 Key $MODKEY-n # Move to the next tag
         wmiir xwrite /ctl view $(wi_tags | wi_nexttag)
 Key $MODKEY-b # Move to the previous tag
@@ -241,7 +241,7 @@
 Key $MODKEY-$i # Move to the numbered view
         wmiir xwrite /ctl view "$i"
 Key $MODKEY-Shift-$i # Retag selected client with the numbered tag
- wmiir xwrite /client/sel/tags "$i"
+ wmiir xwrite /client/sel/ctl tags "$i"
 !
         done
 }
Received on Tue Jun 29 2010 - 17:41:06 UTC

This archive was generated by hypermail 2.2.0 : Tue Jun 29 2010 - 17:48:04 UTC