Changeset 3896


Ignore:
Timestamp:
Nov 10, 2009, 5:10:22 PM (11 years ago)
Author:
Pascal Terjan
Message:
  • Add lock_on_detach option
Location:
neercs/trunk
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • neercs/trunk/TODO

    r3487 r3896  
    22- Add some options
    33 * Autolock after n seconds of screensaver
    4  * Autolock on detach
    54- Improve performance
    6 - Preserve terminal state when grabbing
    75- Fix arrow keys in vim
    8 - Process browser to easily hijack applications
  • neercs/trunk/doc/neercs.1

    r3456 r3896  
    1 .TH neercs 1 "2009-05-12" "neercs"
     1.TH neercs 1 "2009-11-10" "neercs"
    22.SH NAME
    33neercs \- text-mode window manager
     
    8282Lock screen after \fIn\fR seconds of inactivity.
    8383.TP 5
     84.BI lock_on_detach= bool
     85.Lock screen when detaching.
     86.TP 5
    8487.BI socket_dir= dir
    8588Store sockets in \fIdir\fP. Default location is taken from
  • neercs/trunk/src/configuration.c

    r3551 r3896  
    314314            /* if timeout is 0, set it to 0xFFFFFFFFFFFFFFFF */
    315315            if(!screen_list->autolock_timeout) screen_list->autolock_timeout-=1;
     316        }  else if(IS_TOKEN("lock_on_detach"))
     317        {
     318            if     (IS_VALUE("true") || IS_VALUE("1")) screen_list->lock_on_detach = 1;
     319            else                                       screen_list->lock_on_detach = 0;
    316320        } else if(IS_TOKEN("socket_dir"))
    317321        {
  • neercs/trunk/src/main.c

    r3876 r3896  
    384384    screen_list->locked = 0;
    385385    screen_list->lock_offset = 0;
     386    screen_list->lock_on_detach = 0;   
    386387    screen_list->attached = 1;
    387388    screen_list->socket[SOCK_SERVER] = 0;
  • neercs/trunk/src/neercs.h

    r3891 r3896  
    164164    int locked;
    165165    int lock_offset;
     166    int lock_on_detach;
    166167    long long unsigned int  autolock_timeout;
    167168    char lockpass[1024];
  • neercs/trunk/src/server.c

    r3894 r3896  
    180180{
    181181    screen_list->attached = 0;
     182    if(screen_list->lock_on_detach)
     183        screen_list->locked = 1;
    182184    if(screen_list->socket[SOCK_CLIENT])
    183185    {
Note: See TracChangeset for help on using the changeset viewer.