add more spacing
[personal-kdebase.git] / workspace / krunner / screensaver / xautolock_c.h
blob3b82f5c3fe4dd8bfe6617fefad15e898a54e033a
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
7 * settings.
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
24 #include <X11/Xlib.h>
25 #ifdef __cplusplus
26 # include <fixx11h.h>
27 #endif
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 */
40 #define cornerSize 5
42 #define cornerDelay 5
44 #define cornerRedelay 5
46 typedef enum { ca_nothing, ca_dontLock, ca_forceLock } xautolock_corner_t;
48 #ifdef __cplusplus
49 extern "C"
51 #endif
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 ];
60 #ifdef __cplusplus
62 #endif
65 #endif