first steps towards supporting the "bye" command
This commit is contained in:
1 parent
a3db7b4cb2
commit
0dde525a46
7 files changed
+33
-25
No files matched your search
@@ -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...
|
||||
|
||||
Reference in new issue
Block a user