XtNextEvent(3) XT COMPATIBILITY FUNCTIONS XtNextEvent(3)

# [NAME](#NAME)

XtNextEvent, XtPending, XtPeekEvent, XtProcessEvent, XtMainLoop - query and process events and input

# [SYNTAX](#SYNTAX)

#include &lt;X11/Intrinsic.h&gt;

void XtNextEvent(XEvent \**event\_return*);

Boolean XtPeekEvent(XEvent \**event\_return*);

Boolean XtPending(void);

void XtProcessEvent(XtInputMask *mask*);

void XtMainLoop(void);

# [ARGUMENTS](#ARGUMENTS)

[*event*](#event)

Specifies a pointer to the event structure that is to be dispatched to the appropriate event handler.

[*event\_return*](#event_return)

Returns the event information to the specified event structure.

[*mask*](#mask)

Specifies what types of events to process. The mask is the bitwise inclusive OR of any combination of **XtIMXEvent**, **XtIMTimer**, **XtIMAlternateInput**, and **XtIMSignal**. As a convenience, the X Toolkit defines the symbolic name **XtIMAll** to be the bitwise inclusive OR of all event types.

# [DESCRIPTION](#DESCRIPTION)

**XtNextEvent** has been replaced by **XtAppNextEvent**.

**XtPeekEvent** has been replaced by **XtAppPeekEvent**.

**XtPending** has been replaced by **XtAppPending**.

**XtProcessEvent** has been replaced by **XtAppProcessEvent**.

**XtMainLoop** has been replaced by **XtAppMainLoop**.

# [SEE ALSO](#SEE_ALSO)

[XtAppNextEvent(3xt)](/man/os/libxt/XtAppNextEvent.3xt), [XtAppPending(3)](/man/os/libxt/XtAppPending.3), [XtAppPeekEvent(3)](/man/os/libxt/XtAppPeekEvent.3), [XtAppProcessEvent(3)](/man/os/libxt/XtAppProcessEvent.3), [XtAppMainLoop(3)](/man/os/libxt/XtAppMainLoop.3)  
*X Toolkit Intrinsics - C Language Interface*  
*Xlib - C Language X Interface*

libXt 1.3.1 X Version 11

---

Document: XtProcessEvent(3) from libxt 1.3.1-r9 (Chainguard OS)
Source: https://gitlab.freedesktop.org/xorg/lib/libxt.git
