Fixed cursor feature problems. Forgot to commit something...

This commit is contained in:
robijn
2002-04-11 13:55:15 +00:00
parent a3f34c125c
commit 32261e82a3
2 changed files with 7 additions and 4 deletions
+4 -4
View File
@@ -195,14 +195,14 @@ int
Heartbeat_func (int input) Heartbeat_func (int input)
{ {
if (input == MENU_READ) if (input == MENU_READ)
return (heartbeat != HEART_OFF); return (heartbeat != HEARTBEAT_OFF);
if (input == MENU_CHECK) { if (input == MENU_CHECK) {
if (heartbeat) if (heartbeat)
heartbeat = HEART_OFF; heartbeat = HEARTBEAT_OFF;
else else
heartbeat = HEART_OPEN; heartbeat = HEARTBEAT_OPEN;
} }
return ((heartbeat != HEART_OFF) | MENU_OK); return ((heartbeat != HEARTBEAT_OFF) | MENU_OK);
} }
int int
+3
View File
@@ -24,6 +24,9 @@ typedef struct screen {
int heartbeat; int heartbeat;
int timeout; int timeout;
int backlight_state; int backlight_state;
int cursor;
int cursor_x;
int cursor_y;
char *keys; char *keys;
LinkedList *widgets; LinkedList *widgets;
client *parent; client *parent;