Changeset 2500 for neercs/trunk/src
- Timestamp:
- Jun 28, 2008, 4:50:59 PM (15 years ago)
- Location:
- neercs/trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
neercs/trunk/src/configuration.c
r2481 r2500 283 283 /* if timeout is 0, set it to 0xFFFFFFFFFFFFFFFF */ 284 284 if(!screen_list->screensaver_timeout) screen_list->screensaver_timeout-=1; 285 } else if(IS_TOKEN("autolock_timeout")) 286 { 287 screen_list->autolock_timeout = atoi(option->value) * 1000000; 288 /* if timeout is 0, set it to 0xFFFFFFFFFFFFFFFF */ 289 if(!screen_list->autolock_timeout) screen_list->autolock_timeout-=1; 285 290 } else if(IS_TOKEN("socket_dir")) 286 291 { -
neercs/trunk/src/main.c
r2497 r2500 119 119 } 120 120 121 121 122 screen_list->recurrent_list = (struct recurrent_list*) malloc(sizeof(struct recurrent_list)); 122 123 screen_list->recurrent_list->recurrent = (struct recurrent**) malloc(sizeof(struct recurrent*)); … … 304 305 305 306 last_key_time = get_us(); 306 307 307 308 308 for(;;) … … 420 420 421 421 } 422 423 422 if((get_us() - last_key_time > screen_list->screensaver_timeout)) 424 423 { … … 431 430 refresh = 1; 432 431 } 432 433 if((get_us() - last_key_time > screen_list->autolock_timeout)) 434 { 435 screen_list->locked = 1; 436 refresh = 1; 437 } 438 433 439 } 434 440 … … 542 548 screen_list->default_shell = NULL; 543 549 550 screen_list->autolock_timeout = -1; 551 552 544 553 screen_list->recurrent_list = NULL; 545 554 screen_list->cv = NULL; -
neercs/trunk/src/neercs.h
r2495 r2500 81 81 int locked; 82 82 int lock_offset; 83 long long unsigned int autolock_timeout; 83 84 char lockpass[1024]; 84 85 char lockmsg[1024]; -
neercs/trunk/src/neercsrc
r2486 r2500 12 12 window_manager = hsplit ; full card hsplit vsplit 13 13 status_bar = true ; Activate status bar 14 autolock_timeout = 120 ; Lock session after 100 seconds 14 15 15 16 [eyecandy] ; Not-that-useful stuff
Note: See TracChangeset
for help on using the changeset viewer.