XtLastEventProcessed(3)
π XtLastEventProcessed β bestie edition
okay so this is a page from the XT FUNCTIONS corner of the manual, specifically the XtLastEventProcessed(3) one, and it's lowkey two whole functions in a trench coat. let's get into it π«Ά
β¨ NAME β¨
XtLastEventProcessed, XtLastTimestampProcessed β literally just "the last event" and "the last timestamp" that got processed. that's the whole vibe. π
πΈ SYNTAX πΈ
#include <X11/Intrinsic.h>
XEvent* XtLastEventProcessed(Display* display);
Time XtLastTimestampProcessed(Display* display);
two lil function signatures, both taking a display, one hands you back an event pointer and the other hands you back a Time. iconic behavior honestly. β¨
π ARGUMENTS π
displayβ the open display connection you're asking about. that's it, that's the only thing you pass in. she's low maintenance fr fr π
π¦ DESCRIPTION π¦
so. XtLastEventProcessed returns the last event that was passed to XtDispatchEvent for the display you specified β and it returns NULL if there has been no event at all. no event? nothing? NULL. empty. the void. π
π¨ bestie LISTEN: the client must not modify the contents of the returned event. don't touch it. don't poke it. don't edit it. it is not yours, it is a loan, look with your eyes only. π
meanwhile XtLastTimestampProcessed is the timestamp girlie. she returns the timestamp of the last KeyPress, KeyRelease, ButtonPress, ButtonRelease, MotionNotify, EnterNotify, LeaveNotify, PropertyNotify, or SelectionClear event that has been passed to XtDispatchEvent for the specified display. and if there has been no such event, you get zero. 0. nothing. a flat zero. π
so like, quick recap of the whole roster of events she cares about, since it's a very specific list and we respect her for it:
KeyPressKeyReleaseButtonPressButtonReleaseMotionNotifyEnterNotifyLeaveNotifyPropertyNotifySelectionClear
nine events. she said "these ones, and zero for everything else." periodt. π
π SEE ALSO π
- X Toolkit Intrinsics - C Language Interface
- Xlib - C Language X Interface
go read those if you want the full lore, iykyk π
and that's the whole page bestie!! this little gem lives in X Version 11, libXt 1.3.1, and it's filed under XtLastEventProcessed(3) π mwah, go process some events responsibly, don't modify that returned event, and drink some water. byeee ππ§πΈ
π¦ 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