XtNextEvent(3)
π XtNextEvent β the girlies' guide to querying and processing events π
okay so bestie, welcome to the XtNextEvent manual page, straight out of the XT COMPATIBILITY FUNCTIONS section of libXt. these are the legacy girls β the originals β and they're all about querying and processing events and input. π¦
β¨ NAME β¨
XtNextEvent, XtPending, XtPeekEvent, XtProcessEvent, XtMainLoop β query and process events and input, no cap. π
β¨ SYNTAX β¨
first thing you do, always: pull in the header. iconic behavior.
#include <X11/Intrinsic.h>
then the five function signatures, verbatim, don't @ me:
void XtNextEvent(XEvent *event_return);
Boolean XtPeekEvent(XEvent *event_return);
Boolean XtPending(void);
void XtProcessEvent(XtInputMask mask);
void XtMainLoop(void);
β¨ ARGUMENTS β¨
eventβ this one's a pointer to the event structure that's gonna get dispatched to the appropriate event handler. it's giving "hand off the mail to the right mailbox". π¬event_returnβ the event info comes back to you in this event structure you specified. it literally returns the event information there. πmaskβ this tells you what types of events to process. it's the bitwise inclusive OR of any combination ofXtIMXEvent,XtIMTimer,XtIMAlternateInput, andXtIMSignal. and as a lil convenience, the X Toolkit defines the symbolic nameXtIMAllto be the bitwise inclusive OR of all event types. so like,XtIMAll= all of them, periodt. π
β¨ DESCRIPTION β¨
okay so here's the tea, and it's a little sad but we move: every single one of these has been replaced. π
XtNextEventhas been replaced byXtAppNextEvent.XtPeekEventhas been replaced byXtAppPeekEvent.XtPendinghas been replaced byXtAppPending.XtProcessEventhas been replaced byXtAppProcessEvent.XtMainLoophas been replaced byXtAppMainLoop.
like, they're still here, they still work, but the glow-up versions exist and you should lowkey be using those. this is the compatibility corner of the library, bestie. π
β¨ SEE ALSO β¨
go read these next, fr fr:
XtAppNextEvent(3xt)XtAppPending(3)XtAppPeekEvent(3)XtAppProcessEvent(3)XtAppMainLoop(3)- X Toolkit Intrinsics - C Language Interface
- Xlib - C Language X Interface
and that's the whole page, bestie. short, sweet, and entirely made of "use the App version instead". π
mwah π this page came to you from X Version 11, libXt 1.3.1 β so like, this is the libXt girlies' era, not the Xlib one. take care of her, she's vintage. π
π¦ where this page comes from
- alpine 3.22: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.23: libxt-doc 1.3.1-r0 Β· MIT
- alpine 3.24: libxt-doc 1.3.1-r0 Β· MIT
- arch rolling: libxt 1.3.1-1 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 43: libXt-devel 1.3.1-3.fc43 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- fedora 44: libXt-devel 1.3.1-4.fc44 Β· MIT AND HPND-sell-variant AND SMLNJ AND MIT-open-group AND X11
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- opensuse-leap 16.0: libXt-devel 1.3.1-160000.3.2 Β· MIT
- Copyright (c) 1993, 1994 X Consortium
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms