~ctwm/ctwm/trunk

304.1.2 by Matthew Fuller
Run 'make indent' to reindent the world.
1
/*
554.1.6 by Matthew Fuller
Collapse away redundant license texts in most .h files. These are all
2
 * twm event handler include file
3
 *
4
 *
5
 *       Copyright 1988 by Evans & Sutherland Computer Corporation,
6
 *                          Salt Lake City, Utah
7
 *  Portions Copyright 1989 by the Massachusetts Institute of Technology
8
 *                        Cambridge, Massachusetts
1 by Claude Lecommandeur
CTWM version 1.1
9
 *
10
 * $XConsortium: events.h,v 1.14 91/05/10 17:53:58 dave Exp $
11
 *
304.1.2 by Matthew Fuller
Run 'make indent' to reindent the world.
12
 * 17-Nov-87 Thomas E. LaStrange                File created
1 by Claude Lecommandeur
CTWM version 1.1
13
 *
554.1.6 by Matthew Fuller
Collapse away redundant license texts in most .h files. These are all
14
 * Copyright 1992 Claude Lecommandeur.
15
 *
16
 */
1 by Claude Lecommandeur
CTWM version 1.1
17
484 by Matthew Fuller
Consistently rename all the include guards so they match the filename,
18
#ifndef _CTWM_EVENTS_H
19
#define _CTWM_EVENTS_H
1 by Claude Lecommandeur
CTWM version 1.1
20
93 by Richard Levitte
- Convert all functions to use proper prototypes.
21
typedef void (*event_proc)(void);
22
492.2.28 by Matthew Fuller
extern is implicit and the only linkage specifier that's meaningful
23
void InitEvents(void);
492.2.52 by Matthew Fuller
Bool cleanup in events.c. Staticize a function only used here while
24
bool DispatchEvent(void);
25
bool DispatchEvent2(void);
492.2.28 by Matthew Fuller
extern is implicit and the only linkage specifier that's meaningful
26
void HandleEvents(void) __attribute__((noreturn));
27
521.1.28 by Matthew Fuller
Little comment tweaking about utils.
28
/* Bits in event_utils.c */
521.1.21 by Matthew Fuller
Inagurate an event_utils.c to move more util-ish functions into with a
29
/*
30
 * This should maybe be in event_internal.h, but a few other places use
31
 * it.  TBD: figure out why and whether they should
32
 */
33
void AutoRaiseWindow(TwmWindow *tmp);
34
521.1.27 by Matthew Fuller
Move some more event utils _core -> _utils.c.
35
void FixRootEvent(XEvent *e);
521.1.31 by Matthew Fuller
Move SimulateMapRequest() into utils.
36
void SimulateMapRequest(Window w);
521.1.27 by Matthew Fuller
Move some more event utils _core -> _utils.c.
37
521.1.28 by Matthew Fuller
Little comment tweaking about utils.
38
1 by Claude Lecommandeur
CTWM version 1.1
39
extern event_proc EventHandler[];
40
extern Window DragWindow;
41
extern int origDragX;
42
extern int origDragY;
43
extern int DragX;
44
extern int DragY;
196 by Rhialto
Introduce Scr->XineramaRoot to store the root window that
45
extern unsigned int DragWidth;
46
extern unsigned int DragHeight;
6 by Claude Lecommandeur
CTWM version 2.2
47
extern unsigned int DragBW;
1 by Claude Lecommandeur
CTWM version 1.1
48
extern int CurrentDragX;
49
extern int CurrentDragY;
240.1.2 by Rhialto
3 - Selected a number of cleanups from Stefan Monnier
50
extern int Context;
1 by Claude Lecommandeur
CTWM version 1.1
51
52
extern int ButtonPressed;
492.2.91 by Matthew Fuller
Track down a bunch more boolean vars, and make them bool.
53
extern bool Cancel;
1 by Claude Lecommandeur
CTWM version 1.1
54
55
extern XEvent Event;
521.1.20 by Matthew Fuller
Rename lastTimestamp to EventTime to be more obvious about what time
56
extern Time EventTime;
1 by Claude Lecommandeur
CTWM version 1.1
57
484 by Matthew Fuller
Consistently rename all the include guards so they match the filename,
58
#endif /* _CTWM_EVENTS_H */