mirror of https://github.com/0intro/wmii
fixed send command
This commit is contained in:
parent
61e4d38f66
commit
3078597d0a
|
@ -648,7 +648,7 @@ fs_write(Req *r) {
|
|||
case FsFBorder:
|
||||
data_to_cstring(r);
|
||||
i = (unsigned int)strtol((char *)r->ifcall.data, &buf, 10);
|
||||
if(*buf)
|
||||
if(buf)
|
||||
return respond(r, Ebadvalue);
|
||||
def.border = i;
|
||||
return respond(r, nil);
|
||||
|
|
|
@ -371,12 +371,14 @@ view_index(View *v) {
|
|||
Client *
|
||||
client_of_message(char *message, unsigned int *next)
|
||||
{
|
||||
unsigned int i, n;
|
||||
unsigned int i;
|
||||
Client *c;
|
||||
|
||||
if(!strncmp(message, "sel ", 4))
|
||||
if(!strncmp(message, "sel ", 4)) {
|
||||
*next = 4;
|
||||
return sel_client();
|
||||
if((1 != sscanf(message, "%d %n", &i, &n)))
|
||||
}
|
||||
if((1 != sscanf(message, "%d %n", &i, next)))
|
||||
return nil;
|
||||
for(c=client; i && c; c=c->next, i--);
|
||||
return c;
|
||||
|
|
Loading…
Reference in New Issue