XPutBackEvent(3)
π NAME π
XPutBackEvent β put events back on the queue, bestie. This is the XPutBackEvent(3) page from the XLIB FUNCTIONS manual, and it's literally about yeeting an event right back where it came from.
β¨ SYNTAX β¨
XPutBackEvent(Display *display, XEvent *event);
π ARGUMENTS π
displayβ Specifies the connection to the X server. It's giving "which X server are we even talking to?" energy.eventβ Specifies the event. This is the actual event being put back onto the queue.
π¦ DESCRIPTION π¦
Okay so XPutBackEvent pushes an event back onto the head of the display's event queue by copying the event into the queue. Not moving, not manifesting β copying. π
It's lowkey useful if you read an event and then decide you'd rather deal with it later. You just put it back. Main character energy, honestly.
And there is no limit to the number of times in succession that you can call XPutBackEvent. Over and over in a row? Slay. No cap. β¨
π SEE ALSO π
XAnyEvent(3)XIfEvent(3)XNextEvent(3)XSendEvent(3)Xlib - C Language X Interface
π cute lil sign-off: this page is rockin' X Version 11, libX11 1.8.14, and the XPutBackEvent(3) footer with its date info in the usual footer spot β that's the source/version/date situation, periodt. π
π¦ where this page comes from
- alpine 3.24: libx11-doc 1.8.14-r0 Β· X11
- arch rolling: libx11 1.8.14-1 Β· MIT AND X11
- nixos 26.05: libx11 1.8.14
- nixpkgs unstable: libx11 1.8.14
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms