Fixed cursor feature problems. Forgot to commit something...
This commit is contained in:
+4
-4
@@ -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
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user