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)
{
if (input == MENU_READ)
return (heartbeat != HEART_OFF);
return (heartbeat != HEARTBEAT_OFF);
if (input == MENU_CHECK) {
if (heartbeat)
heartbeat = HEART_OFF;
heartbeat = HEARTBEAT_OFF;
else
heartbeat = HEART_OPEN;
heartbeat = HEARTBEAT_OPEN;
}
return ((heartbeat != HEART_OFF) | MENU_OK);
return ((heartbeat != HEARTBEAT_OFF) | MENU_OK);
}
int
+3
View File
@@ -24,6 +24,9 @@ typedef struct screen {
int heartbeat;
int timeout;
int backlight_state;
int cursor;
int cursor_x;
int cursor_y;
char *keys;
LinkedList *widgets;
client *parent;