Renamed package to ion1, and made it conflict with package 'ion'.
[ion1.git] / src / event.h
blob8770ec7857652e678817bc48bdf2ec463542a390
1 /*
2 * ion/event.h
4 * Copyright (c) Tuomo Valkonen 1999-2001.
5 * See the included file LICENSE for details.
6 */
8 #ifndef INCLUDED_EVENT_H
9 #define INCLUDED_EVENT_H
11 #include "global.h" /* for InputHandler and InputHandlerContext */
12 #include "common.h"
13 #include "thing.h"
16 #define GRAB_POINTER_MASK (ButtonPressMask|ButtonReleaseMask|\
17 ButtonMotionMask)
19 #define ROOT_MASK (SubstructureRedirectMask| \
20 ColormapChangeMask| \
21 ButtonPressMask|ButtonReleaseMask| \
22 PropertyChangeMask|KeyPressMask| \
23 FocusChangeMask|EnterWindowMask)
25 #define FRAME_MASK (FocusChangeMask| \
26 ButtonPressMask| \
27 ButtonReleaseMask| \
28 KeyPressMask| \
29 EnterWindowMask| \
30 ExposureMask| \
31 SubstructureRedirectMask)
33 #define CLIENT_MASK (ColormapChangeMask| \
34 PropertyChangeMask|FocusChangeMask| \
35 StructureNotifyMask)
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 */