From 9e35361eb89eeb3e99224d83dfd5bec98d400863 Mon Sep 17 00:00:00 2001 From: flysand7 Date: Sun, 12 Nov 2023 20:57:48 +1100 Subject: [PATCH] [vendor/x11]: Fix definition for EventType --- vendor/x11/xlib/xlib_const.odin | 41 +++++++++++++++++++++++++++++++-- 1 file 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,