| 1 |
/* |
| 2 |
|
| 3 |
Copyright 1987, 1998 The Open Group |
| 4 |
|
| 5 |
Permission to use, copy, modify, distribute, and sell this software and its |
| 6 |
documentation for any purpose is hereby granted without fee, provided that |
| 7 |
the above copyright notice appear in all copies and that both that |
| 8 |
copyright notice and this permission notice appear in supporting |
| 9 |
documentation. |
| 10 |
|
| 11 |
The above copyright notice and this permission notice shall be included in |
| 12 |
all copies or substantial portions of the Software. |
| 13 |
|
| 14 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
| 15 |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
| 16 |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
| 17 |
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN |
| 18 |
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
| 19 |
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 20 |
|
| 21 |
Except as contained in this notice, the name of The Open Group shall not be |
| 22 |
used in advertising or otherwise to promote the sale, use or other dealings |
| 23 |
in this Software without prior written authorization from The Open Group. |
| 24 |
|
| 25 |
*/ |
| 26 |
|
| 27 |
#ifdef HAVE_CONFIG_H |
| 28 |
#include <config.h> |
| 29 |
#endif |
| 30 |
#include <nx-X11/X.h> |
| 31 |
|
| 32 |
/* |
| 33 |
* This array can be used given an event type to determine the mask bits |
| 34 |
* that could have generated it. |
| 35 |
*/ |
| 36 |
long const _Xevent_to_mask [LASTEvent] = { |
| 37 |
0, /* no event 0 */ |
| 38 |
0, /* no event 1 */ |
| 39 |
KeyPressMask, /* KeyPress */ |
| 40 |
KeyReleaseMask, /* KeyRelease */ |
| 41 |
ButtonPressMask, /* ButtonPress */ |
| 42 |
ButtonReleaseMask, /* ButtonRelease */ |
| 43 |
PointerMotionMask|PointerMotionHintMask|Button1MotionMask| |
| 44 |
Button2MotionMask|Button3MotionMask|Button4MotionMask| |
| 45 |
Button5MotionMask|ButtonMotionMask, /* MotionNotify */ |
| 46 |
EnterWindowMask, /* EnterNotify */ |
| 47 |
LeaveWindowMask, /* LeaveNotify */ |
| 48 |
FocusChangeMask, /* FocusIn */ |
| 49 |
FocusChangeMask, /* FocusOut */ |
| 50 |
KeymapStateMask, /* KeymapNotify */ |
| 51 |
ExposureMask, /* Expose */ |
| 52 |
ExposureMask, /* GraphicsExpose */ |
| 53 |
ExposureMask, /* NoExpose */ |
| 54 |
VisibilityChangeMask, /* VisibilityNotify */ |
| 55 |
SubstructureNotifyMask, /* CreateNotify */ |
| 56 |
StructureNotifyMask|SubstructureNotifyMask, /* DestroyNotify */ |
| 57 |
StructureNotifyMask|SubstructureNotifyMask, /* UnmapNotify */ |
| 58 |
StructureNotifyMask|SubstructureNotifyMask, /* MapNotify */ |
| 59 |
SubstructureRedirectMask, /* MapRequest */ |
| 60 |
SubstructureNotifyMask|StructureNotifyMask, /* ReparentNotify */ |
| 61 |
StructureNotifyMask|SubstructureNotifyMask, /* ConfigureNotify */ |
| 62 |
SubstructureRedirectMask, /* ConfigureRequest */ |
| 63 |
SubstructureNotifyMask|StructureNotifyMask, /* GravityNotify */ |
| 64 |
ResizeRedirectMask, /* ResizeRequest */ |
| 65 |
SubstructureNotifyMask|StructureNotifyMask, /* CirculateNotify */ |
| 66 |
SubstructureRedirectMask, /* CirculateRequest */ |
| 67 |
PropertyChangeMask, /* PropertyNotify */ |
| 68 |
0, /* SelectionClear */ |
| 69 |
0, /* SelectionRequest */ |
| 70 |
0, /* SelectionNotify */ |
| 71 |
ColormapChangeMask, /* ColormapNotify */ |
| 72 |
0, /* ClientMessage */ |
| 73 |
0, /* MappingNotify */ |
| 74 |
}; |