chiark / gitweb /
Imported Upstream version 1.0.0
[e16] / src / focus.h
1 /*
2  * Copyright (C) 2000-2007 Carsten Haitzler, Geoff Harrison and various contributors
3  * Copyright (C) 2004-2009 Kim Woelders
4  *
5  * Permission is hereby granted, free of charge, to any person obtaining a copy
6  * of this software and associated documentation files (the "Software"), to
7  * deal in the Software without restriction, including without limitation the
8  * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
9  * sell copies of the Software, and to permit persons to whom the Software is
10  * furnished to do so, subject to the following conditions:
11  *
12  * The above copyright notice and this permission notice shall be included in
13  * all copies of the Software, its documentation and marketing & publicity
14  * materials, and acknowledgment shall be given in the documentation, materials
15  * and software packages that this Software was used.
16  *
17  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20  * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
21  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
22  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23  */
24 #ifndef _FOCUS_H_
25 #define _FOCUS_H_
26
27 #include <X11/Xlib.h>
28
29 /* focus.c */
30 #define FOCUS_NOP         0
31 #define FOCUS_INIT        1
32 #define FOCUS_SET         2
33 #define FOCUS_NONE        3
34 #define FOCUS_ENTER       4
35 #define FOCUS_LEAVE       5
36 #define FOCUS_EWIN_NEW    6
37 #define FOCUS_EWIN_UNMAP  7
38 #define FOCUS_DESK_ENTER  8
39 #define FOCUS_DESK_LEAVE  9
40 #define FOCUS_NEXT       10
41 #define FOCUS_PREV       11
42 #define FOCUS_CLICK      12
43
44 void                FocusEnable(int on);
45 void                FocusToEWin(EWin * ewin, int why);
46 void                FocusHandleEnter(EWin * ewin, XEvent * ev);
47 void                FocusHandleLeave(EWin * ewin, XEvent * ev);
48 void                FocusHandleChange(EWin * ewin, XEvent * ev);
49 void                FocusHandleClick(EWin * ewin, Win win);
50 void                FocusNewDeskBegin(void);
51 void                FocusNewDesk(void);
52 void                FocusCheckScreen(void);
53
54 void                ClickGrabsUpdate(void);
55
56 /* warp.c */
57 void                WarpFocus(int delta);
58
59 #endif /* _FOCUS_H_ */