Added the client_function timeout to the code.

Also noticed a BIG bug in the screen_set code, the strcmp's never worked, they
where no longer checking the results == 0.
This commit is contained in:
glengray
2001-11-12 17:35:43 +00:00
parent 91c430a8c4
commit e137c1011b
4 changed files with 66 additions and 11 deletions
+2
View File
@@ -14,6 +14,7 @@
#include "main.h"
int default_duration = 0;
int default_timeout = -1;
screen *
screen_create ()
@@ -36,6 +37,7 @@ screen_create ()
s->keys = NULL;
s->parent = NULL;
s->widgets = NULL;
s->timeout = default_timeout; //ignored unless greater than 0.
s->widgets = LL_new ();
if (!s->widgets) {