xcb_motion_notify_event_t(3)
π xcb_motion_notify_event_t π
okay bestie, sit down, hydrate, and let me tell you about xcb_motion_notify_event_t β it's a struct from the XCB Events corner of the universe, and its whole thing is, and I quote, "a key was pressed". That's the NAME. That's what we're working with. π
It lives in <xcb/xproto.h>, it's giving very much "pointer moving" energy, and we're gonna go through every single field together because nothing gets skipped in this house. π
β¨ SYNOPSIS β¨
#include <xcb/xproto.h>
π¦ Event datastructure π¦
here's the whole vibe, character for character, no cap:
typedef struct xcb_motion_notify_event_t {
uint8_t response_type;
uint8_t detail;
uint16_t sequence;
xcb_timestamp_t time;
xcb_window_t root;
xcb_window_t event;
xcb_window_t child;
int16_t root_x;
int16_t root_y;
int16_t event_x;
int16_t event_y;
uint16_t state;
uint8_t same_screen;
uint8_t pad0;
} xcb_motion_notify_event_t;
πΈ EVENT FIELDS πΈ
every field, one by one, in order, because we are thorough girlies:
response_typeβ the type of this event, which in this case isXCB_MOTION_NOTIFY. bestie this field is also chillin' inxcb_generic_event_t, so you can use it to tell your events apart from each other. it's the name tag at the party. π«Άsequenceβ the sequence number of the last request that the X11 server processed. the receipt, basically. π§Ύdetailβ the keycode (that's a number representing a physical key on the keyboard) of the key which was pressed. yes really, that's what it says. πtimeβ when the event was generated, in milliseconds. the timestamp, the moment, the era. β°rootβ the root window ofchild. π³eventβNOT YET DOCUMENTED.that's it, that's the whole description, the docs said "idk yet" and we respect the honesty. πchildβNOT YET DOCUMENTED.same energy, same mystery. πroot_xβ the X coordinate of the pointer relative to the root window, at the time of the event. πroot_yβ the Y coordinate of the pointer relative to the root window, at the time of the event. πevent_xβ ifsame_screenis true, this is the X coordinate relative to the event window's origin. otherwise,event_xwill be set to zero. βevent_yβ ifsame_screenis true, this is the Y coordinate relative to the event window's origin. otherwise,event_ywill be set to zero. βstateβ the logical state of the pointer buttons and modifier keys just prior to the event. like, right before, the pre-game. π₯same_screenβ whether the event window is on the same screen as the root window. yes/no, true/false, are-they-neighbors. π
π DESCRIPTION π
literally nothing here. the DESCRIPTION section is empty, bestie. she said "no thoughts, head empty, only struct". we are NOT adding anything because the rule is the rule. β¨
π₯ SEE ALSO π₯
go read these next, they're the friend group:
xcb_generic_event_t(3)xcb_grab_key(3)xcb_grab_keyboard(3)
π AUTHOR π
Generated from xproto.xml. Contact xcb@lists.freedesktop.org for corrections and improvements. so if you spot something, email the girlies, they're lovely and they want to hear it. π
and that's the whole page, no crumbs left. this manual page came to you from X Version 11, libxcb 1.17.0, and it's xcb_motion_notify_event_t(3) β mwah, iconic, periodt. π
β¨π¦
π¦ where this page comes from
- alpine 3.22: libxcb-doc 1.17.0-r0 Β· MIT
- alpine 3.23: libxcb-doc 1.17.0-r1 Β· MIT
- alpine 3.24: libxcb-doc 1.17.0-r2 Β· MIT
- arch rolling: libxcb 1.17.0-1 Β· X11
- centos-stream 10: libxcb-devel 1.17.0-3.el10 Β· X11
- debian trixie: libxcb-doc 1.17.0-2
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 43: libxcb-devel 1.17.0-6.fc43 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- fedora 44: libxcb-devel 1.17.0-7.fc44 Β· X11
- nixpkgs unstable: libxcb 1.17.0
- opensuse-leap 16.0: libxcb-devel-doc 1.17.0-160000.2.2 Β· MIT
- ubuntu questing: libxcb-doc 1.17.0-2build1
- ubuntu resolute: libxcb-doc 1.17.0-2ubuntu1
- ubuntu stonking: libxcb-doc 1.17.0-2ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms