mirror of https://github.com/0intro/wmii
Fix updating tags via /client/*/tags. Closes issue #200.
This commit is contained in:
parent
0f6a36936d
commit
9bfa6ce867
|
@ -497,6 +497,15 @@ fs_write(Ixp9Req *r) {
|
||||||
return;
|
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];
|
t = &actiontab[f->tab.type];
|
||||||
if(f->tab.type < nelem(actiontab)) {
|
if(f->tab.type < nelem(actiontab)) {
|
||||||
if(t->msg) {
|
if(t->msg) {
|
||||||
|
|
|
@ -6,7 +6,7 @@ clean: pyclean
|
||||||
.py.install:
|
.py.install:
|
||||||
echo PYTHON install $* $(PYPREFIX)
|
echo PYTHON install $* $(PYPREFIX)
|
||||||
DESTDIR=$(DESTDIR); \
|
DESTDIR=$(DESTDIR); \
|
||||||
$(DEBUG) $(PYTHON) $< install -cO1 --root=$${DESTDIR:-/} $(PYPREFIX)
|
$(DEBUG) $(PYTHON) $< install -c --root=$${DESTDIR:-/} $(PYPREFIX)
|
||||||
pyclean:
|
pyclean:
|
||||||
echo CLEAN build/
|
echo CLEAN build/
|
||||||
rm -rf build
|
rm -rf build
|
||||||
|
|
|
@ -131,7 +131,7 @@ Menu LBar-3-Delete
|
||||||
for c in $clients; do
|
for c in $clients; do
|
||||||
if [ "$tag" = "$(wmiir read /client/$c/tags)" ]
|
if [ "$tag" = "$(wmiir read /client/$c/tags)" ]
|
||||||
then wmiir xwrite /client/$c/ctl kill
|
then wmiir xwrite /client/$c/ctl kill
|
||||||
else wmiir xwrite /client/$c/tags -$tag
|
else wmiir xwrite /client/$c/ctl tags -$tag
|
||||||
fi
|
fi
|
||||||
[ "$tag" = "$(wi_seltag)" ] &&
|
[ "$tag" = "$(wi_seltag)" ] &&
|
||||||
wmiir xwrite /ctl view $(wi_tags | wi_nexttag)
|
wmiir xwrite /ctl view $(wi_tags | wi_nexttag)
|
||||||
|
@ -230,7 +230,7 @@ Key $MODKEY-t # Change to another tag
|
||||||
wmiir xwrite /ctl view $(wi_tags | wimenu -h "${hist}.tags" -n 50) &
|
wmiir xwrite /ctl view $(wi_tags | wimenu -h "${hist}.tags" -n 50) &
|
||||||
Key $MODKEY-Shift-t # Retag the selected client
|
Key $MODKEY-Shift-t # Retag the selected client
|
||||||
# Assumes left-to-right order of evaluation
|
# 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
|
Key $MODKEY-n # Move to the next tag
|
||||||
wmiir xwrite /ctl view $(wi_tags | wi_nexttag)
|
wmiir xwrite /ctl view $(wi_tags | wi_nexttag)
|
||||||
Key $MODKEY-b # Move to the previous tag
|
Key $MODKEY-b # Move to the previous tag
|
||||||
|
@ -241,7 +241,7 @@ Key $MODKEY-b # Move to the previous tag
|
||||||
Key $MODKEY-$i # Move to the numbered view
|
Key $MODKEY-$i # Move to the numbered view
|
||||||
wmiir xwrite /ctl view "$i"
|
wmiir xwrite /ctl view "$i"
|
||||||
Key $MODKEY-Shift-$i # Retag selected client with the numbered tag
|
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
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue