XMapRequestEvent(3)

πŸ’… XMapRequestEvent(3) β€” MapRequest event structure πŸ¦‹

okay so bestie, welcome to the XMapRequestEvent(3) page from the XLIB FUNCTIONS lineup. this is the MapRequest event structure, and it is lowkey the moment for toolkit dispatchers. no cap. 🫢

🌸 NAME 🌸

XMapRequestEvent β€” MapRequest event structure. literally that's the name and the vibe. periodt. ✨

πŸŽ€ STRUCTURES πŸŽ€

the structure for MapRequest events contains this exact little gem:

typedef struct {
        int type;       /* MapRequest */
        unsigned long serial;   /* # of last request processed by server */
        Bool send_event;        /* true if this came from a SendEvent request */
        Display *display;       /* Display the event was read from */
        Window parent;
        Window window;
} XMapRequestEvent;

when you receive this event, the structure members are set as follows. get into it:

  • type β€” set to the event type constant name that uniquely identifies it. for example, when the X server reports a GraphicsExpose event to a client application, it sends an XGraphicsExposeEvent structure with the type member set to GraphicsExpose. iconic.
  • display β€” set to a pointer to the display the event was read on. πŸ’–
  • send_event β€” set to True if the event came from a SendEvent protocol request.
  • serial β€” set from the serial number reported in the protocol, but expanded from the 16-bit least-significant bits to a full 32-bit value. math queen behavior. πŸ’…
  • window β€” set to the window that is most useful to toolkit dispatchers. that's the general member blurb, bestie.
  • parent β€” set to the parent window. yes ma'am. πŸ¦‹
  • window β€” and specifically for this event, it's set to the window to be mapped. both window sentences are canon, iykyk. πŸŽ€

πŸ’œ SEE ALSO πŸ’œ

go read these next, bestie, they're the rest of the event-struct family and they ate:


β™‘ cute sign-off: this page is X Version 11, libX11 1.8.14, XMapRequestEvent(3) β€” mwah, drink water, read your manpages πŸ’‹πŸŒ·

πŸ“¦ where this page comes from