Allow 'send <client> ~'

This commit is contained in:
Kris Maglione 2008-02-03 15:17:08 -05:00
parent cfeed07dc4
commit 4181367d68
1 changed files with 6 additions and 0 deletions

View File

@ -682,6 +682,7 @@ msg_sendclient(View *v, IxpMsg *m, bool swap) {
s = msg_getword(m); s = msg_getword(m);
sym = getsym(s); sym = getsym(s);
/* FIXME: Should use a helper function. */
switch(sym) { switch(sym) {
case LUP: case LUP:
case LDOWN: case LDOWN:
@ -706,6 +707,11 @@ msg_sendclient(View *v, IxpMsg *m, bool swap) {
else else
to = view_findarea(v, v->selcol, true); to = view_findarea(v, v->selcol, true);
break; break;
case LTILDE:
if(a->floating)
return Ebadvalue;
to = v->area;
break;
default: default:
if(!getulong(s, &i) || i == 0) if(!getulong(s, &i) || i == 0)
return Ebadvalue; return Ebadvalue;