4 * Copyright (c) Tuomo Valkonen 1999-2001.
5 * See the included file LICENSE for details.
8 #ifndef INCLUDED_EVENT_H
9 #define INCLUDED_EVENT_H
11 #include "global.h" /* for InputHandler and InputHandlerContext */
16 #define GRAB_POINTER_MASK (ButtonPressMask|ButtonReleaseMask|\
19 #define ROOT_MASK (SubstructureRedirectMask| \
21 ButtonPressMask|ButtonReleaseMask| \
22 PropertyChangeMask|KeyPressMask| \
23 FocusChangeMask|EnterWindowMask)
25 #define FRAME_MASK (FocusChangeMask| \
31 SubstructureRedirectMask)
33 #define CLIENT_MASK (ColormapChangeMask| \
34 PropertyChangeMask|FocusChangeMask| \
38 extern void mainloop();
39 extern void get_event(XEvent
*ev
);
40 extern void get_event_mask(XEvent
*ev
, long mask
);
41 extern void handle_event(XEvent
*ev
);
43 extern void do_grab_kb_ptr(Window win
, WThing
*thing
, long eventmask
);
44 extern void grab_kb_ptr(WThing
*thing
);
45 extern void ungrab_kb_ptr();
47 extern void default_pointer_handler(XEvent
*ev
);
48 extern void default_keyboard_handler(XEvent
*ev
);
50 extern void kill_focusenter_events();
51 extern void skip_focusenter();
53 extern void set_input_handler(InputHandler
*handler
, InputHandlerContext
*context
);
54 extern void restore_input_handler(InputHandlerContext
*context
);
56 #endif /* INCLUDED_EVENT_H */