1/*
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
9 *
10 * $XConsortium: events.h,v 1.14 91/05/10 17:53:58 dave Exp $
11 *
12 * 17-Nov-87 Thomas E. LaStrange                File created
13 *
14 * Copyright 1992 Claude Lecommandeur.
15 *
16 */
17
18#ifndef _CTWM_EVENTS_H
19#define _CTWM_EVENTS_H
20
21typedef void (*event_proc)(void);
22
23void InitEvents(void);
24bool DispatchEvent(void);
25bool DispatchEvent2(void);
26void HandleEvents(void) __attribute__((noreturn));
27
28/* Bits in event_utils.c */
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 */
33void AutoRaiseWindow(TwmWindow *tmp);
34
35void FixRootEvent(XEvent *e);
36void SimulateMapRequest(Window w);
37
38
39extern event_proc EventHandler[];
40extern Window DragWindow;
41extern int origDragX;
42extern int origDragY;
43extern int DragX;
44extern int DragY;
45extern unsigned int DragWidth;
46extern unsigned int DragHeight;
47extern unsigned int DragBW;
48extern int CurrentDragX;
49extern int CurrentDragY;
50extern int Context;
51
52extern int ButtonPressed;
53extern bool Cancel;
54
55extern XEvent Event;
56extern Time EventTime;
57
58#endif /* _CTWM_EVENTS_H */
59