XtGetSelectionRequest(3)
β¨ NAME β¨
Okay so bestie, this page is all about XtGetSelectionRequest β the function that retrieves the event that triggered the XtConvertSelectionProc. It lives in the XT FUNCTIONS manual, section 3, and honestly? It's giving "I was called from inside a selection callback and I need answers."
π SYNTAX π
#include <X11/Intrinsic.h>
XSelectionRequestEvent* XtGetSelectionRequest(Widget w, Atom selection,
XtRequestId request_id);
π ARGUMENTS π
wβ Specifies the widget. Like, the widget in question, bestie.selectionβ Specifies the selection being processed. Which selection we're processing rn.request_idβ Specifies the requestor id in the case of incremental selections, orNULLin the case of atomic transfers. So: requestor id when it's incremental,NULLwhen it's atomic.
π DESCRIPTION π
Okay so here's the tea: XtGetSelectionRequest may only be called from within an XtConvertSelectionProc procedure. Like, that's the whole vibe check β you cannot just call it from anywhere, bestie. When you do call it from in there, it returns a pointer to the SelectionRequest event that caused the conversion procedure to be invoked.
request_id specifies a unique id for the individual request in the case that multiple incremental transfers are outstanding. For atomic transfers, request_id must be specified as NULL. And if no SelectionRequest event is being processed for the specified widget, selection, and request_id, XtGetSelectionRequest returns NULL. Periodt.
π SEE ALSO π
X Toolkit Intrinsics - C Language InterfaceXlib - C Language X Interface
This page is from X Version 11, libXt 1.3.1, XtGetSelectionRequest(3) β and the footer didn't give us a date, so we're just gonna say it's timeless, no cap π
π¦ 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