1 /*****************************************************************************
3 * Authors: Michel Eyckmans (MCE) & Stefan De Troch (SDT)
5 * Content: This file is part of version 2.x of xautolock. It takes care
6 * of most OS dependencies, and defines the program's default
9 * Please send bug reports etc. to eyckmans@imec.be.
11 * --------------------------------------------------------------------------
13 * Copyright 1990,1992-1999,2001-2002 by Stefan De Troch and Michel Eyckmans.
15 * Versions 2.0 and above of xautolock are available under version 2 of the
16 * GNU GPL. Earlier versions are available under other conditions. For more
17 * information, see the License file.
19 *****************************************************************************/
21 #ifndef __xautolock_c_h
22 #define __xautolock_c_h
29 #define DEFAULT_TIMEOUT 600
31 #define CHECK_INTERVAL 5000 /* ms */
33 #define CREATION_DELAY 30 /* should be > 10 and
34 < min (45,(MIN_MINUTES*30)) */
35 #define TIME_CHANGE_LIMIT 120 /* if the time changes by more
36 than x secs then we will
37 assume someone has changed
38 date or machine has suspended */
44 #define cornerRedelay 5
46 typedef enum { ca_nothing
, ca_dontLock
, ca_forceLock
} xautolock_corner_t
;
52 void xautolock_processEvent( XEvent
* ev
);
53 void xautolock_processQueue( void );
54 void xautolock_queryPointer (Display
* d
);
55 void xautolock_initDiy (Display
* d
);
56 void xautolock_resetTriggers( void );
57 void xautolock_setTrigger( int );
58 int xautolock_ignoreWindow( Window
);
59 extern xautolock_corner_t xautolock_corners
[ 4 ];