XSelectionClearEvent(3)

πŸ’– NAME πŸ’–

okay bestie, this is XSelectionClearEvent(3) from the XLIB FUNCTIONS manual β€” literally the SelectionClear event structure. that's the whole vibe. πŸŽ€

🧚 STRUCTURES 🧚

the structure for SelectionClear events contains:

typedef struct {
        int type;       /* SelectionClear */
        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 window;
        Atom selection;
        Time time;
} XSelectionClearEvent;

when you receive this event, the structure members are set as follows. no cap, here's the member-by-member tea:

  • 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.
  • 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.
  • window β€” set to the window that is most useful to toolkit dispatchers. yes, this member really said "main character energy." πŸ‘‘
  • selection β€” set to the selection atom.
  • time β€” set to the last change time recorded for the selection.
  • window β€” and for the selection-specific deets: this is the window that was specified by the current owner (the owner losing the selection) in its XSetSelectionOwner call.
bestie, notice that window shows up twice in the original member walkthrough β€” both details are literally part of the page, so I kept both. periodt. πŸ’…

πŸ”₯ SEE ALSO πŸ”₯

go stalk these besties too:


mwah πŸ’‹ this page is serving X Version 11, libX11 1.8.14, and the XSelectionClearEvent(3) footer tag β€” the footer date slot stays mysterious and unprinted in the original, so I'm not inventing one. that's the whole manual page, bestie. slay. βœ¨πŸ¦‹

πŸ“¦ where this page comes from