Ignore:
Timestamp:
Jun 28, 2008 4:50:59 PM (6 years ago)
Author:
jylam
Message:
  • Added an autolock timeout (autolock_timeout = N in configuration file)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/src/main.c

    r2497 r2500  
    119119    }
    120120
     121
    121122    screen_list->recurrent_list = (struct recurrent_list*) malloc(sizeof(struct recurrent_list));
    122123    screen_list->recurrent_list->recurrent = (struct recurrent**) malloc(sizeof(struct recurrent*));
     
    304305
    305306    last_key_time = get_us();
    306 
    307307
    308308    for(;;)
     
    420420
    421421            }
    422 
    423422            if((get_us() - last_key_time > screen_list->screensaver_timeout))
    424423            {
     
    431430                refresh = 1;
    432431            }
     432
     433            if((get_us() - last_key_time > screen_list->autolock_timeout))
     434            {
     435                screen_list->locked = 1;
     436                refresh = 1;
     437            }
     438
    433439        }
    434440
     
    542548    screen_list->default_shell = NULL;
    543549
     550    screen_list->autolock_timeout = -1;
     551
     552
    544553    screen_list->recurrent_list = NULL;
    545554    screen_list->cv = NULL;
Note: See TracChangeset for help on using the changeset viewer.