aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorflysand7 <yyakut.ac@gmail.com>2023-11-12 20:57:48 +1100
committerflysand7 <yyakut.ac@gmail.com>2023-11-12 20:59:07 +1100
commit9e35361eb89eeb3e99224d83dfd5bec98d400863 (patch)
treeb25674f0d1855e3ddf2f710c83a7b63caeca4f5a
parentcce42f4a6bf45903efa898a9f9c2bc3e5be78601 (diff)
[vendor/x11]: Fix definition for EventType
-rw-r--r--vendor/x11/xlib/xlib_const.odin41
1 files changed, 39 insertions, 2 deletions
diff --git a/vendor/x11/xlib/xlib_const.odin b/vendor/x11/xlib/xlib_const.odin
index b925ec27e..5c3579a8c 100644
--- a/vendor/x11/xlib/xlib_const.odin
+++ b/vendor/x11/xlib/xlib_const.odin
@@ -68,8 +68,8 @@ BackingStore :: enum i32 {
Always = 2,
}
-EventMask :: bit_set[EventType; int]
-EventType :: enum i32 {
+EventMask :: bit_set[EventMaskBits; int]
+EventMaskBits :: enum i32 {
KeyPress = 0,
KeyRelease = 1,
ButtonPress = 2,
@@ -97,6 +97,43 @@ EventType :: enum i32 {
OwnerGrabButton = 24,
}
+EventType :: enum i32 {
+ KeyPress = 2,
+ KeyRelease = 3,
+ ButtonPress = 4,
+ ButtonRelease = 5,
+ MotionNotify = 6,
+ EnterNotify = 7,
+ LeaveNotify = 8,
+ FocusIn = 9,
+ FocusOut = 10,
+ KeymapNotify = 11,
+ Expose = 12,
+ GraphicsExpose = 13,
+ NoExpose = 14,
+ VisibilityNotify = 15,
+ CreateNotify = 16,
+ DestroyNotify = 17,
+ UnmapNotify = 18,
+ MapNotify = 19,
+ MapRequest = 20,
+ ReparentNotify = 21,
+ ConfigureNotify = 22,
+ ConfigureRequest = 23,
+ GravityNotify = 24,
+ ResizeRequest = 25,
+ CirculateNotify = 26,
+ CirculateRequest = 27,
+ PropertyNotify = 28,
+ SelectionClear = 29,
+ SelectionRequest = 30,
+ SelectionNotify = 31,
+ ColormapNotify = 32,
+ ClientMessage = 33,
+ MappingNotify = 34,
+ GenericEvent = 35,
+}
+
InputMask :: bit_set[InputMaskBits; i32]
InputMaskBits :: enum {
ShiftMask = 0,