first steps towards supporting the "bye" command

This commit is contained in:
marschap
2008-11-28 18:34:10 +00:00
parent a3db7b4cb2
commit 0dde525a46
7 changed files with 33 additions and 25 deletions
+3 -3
View File
@@ -51,7 +51,7 @@ widget_add_func(Client *c, int argc, char **argv)
Screen * s;
Widget * w;
if (!c->ack)
if (c->state != ACTIVE)
return 1;
if ((argc < 4) || (argc > 6)) {
@@ -137,7 +137,7 @@ widget_del_func(Client *c, int argc, char **argv)
Screen *s;
Widget *w;
if (!c->ack)
if (c->state != ACTIVE)
return 1;
if (argc != 3) {
@@ -194,7 +194,7 @@ widget_set_func(Client *c, int argc, char **argv)
Screen *s;
Widget *w;
if (!c->ack)
if (c->state != ACTIVE)
return 1;
/* If there weren't enough parameters...