diff options
author | culler <culler> | 2020-05-12 16:14:47 (GMT) |
---|---|---|
committer | culler <culler> | 2020-05-12 16:14:47 (GMT) |
commit | adf991dc1a1ce592bbf33b4bb4f7296014850674 (patch) | |
tree | f0e82afa7d4ad3bd272664a995baff8aaedcdaeb /xlib | |
parent | 56b8b24c8a7a16bb713b397cfd7567bb74e0a231 (diff) | |
parent | 6a0fc9c04e74d9eb649442669220fd232159af4b (diff) | |
download | tk-adf991dc1a1ce592bbf33b4bb4f7296014850674.zip tk-adf991dc1a1ce592bbf33b4bb4f7296014850674.tar.gz tk-adf991dc1a1ce592bbf33b4bb4f7296014850674.tar.bz2 |
Fix [d2a10a14a8]: Give mousewheel events their own flag and event struct; avoid unnecessary keysym lookups
Diffstat (limited to 'xlib')
-rw-r--r-- | xlib/X11/Xlib.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/xlib/X11/Xlib.h b/xlib/X11/Xlib.h index 0971191..a83efde 100644 --- a/xlib/X11/Xlib.h +++ b/xlib/X11/Xlib.h @@ -627,6 +627,22 @@ typedef struct { int x, y; /* pointer x, y coordinates in event window */ int x_root, y_root; /* coordinates relative to root */ unsigned int state; /* key or button mask */ + int delta; /* detail */ + Bool same_screen; /* same screen flag */ +} XWheelEvent; + +typedef struct { + int type; /* of event */ + unsigned long serial; /* # of last request processed by server */ + Bool send_event; /* true if this came from a SendEvent request */ + Display *display; /* Display the event was read from */ + Window window; /* "event" window it is reported relative to */ + Window root; /* root window that the event occured on */ + Window subwindow; /* child window */ + Time time; /* milliseconds */ + int x, y; /* pointer x, y coordinates in event window */ + int x_root, y_root; /* coordinates relative to root */ + unsigned int state; /* key or button mask */ unsigned int button; /* detail */ Bool same_screen; /* same screen flag */ } XButtonEvent; @@ -1017,6 +1033,7 @@ typedef union _XEvent { int type; /* must not be changed; first element */ XAnyEvent xany; XKeyEvent xkey; + XWheelEvent xwheel; XButtonEvent xbutton; XMotionEvent xmotion; XCrossingEvent xcrossing; |