XtAppGetSelectionTimeout(3)

πŸ’… XtAppGetSelectionTimeout β€” the XT FUNCTIONS girlies

okay bestie so this is XtAppGetSelectionTimeout(3), part of the X Toolkit Intrinsics (XT FUNCTIONS, periodt). Two lil functions that read and write the selection timeout value. Cute, small, important. Let's go. ✨


πŸŽ€ NAME

XtAppGetSelectionTimeout, XtAppSetSelectionTimeout β€” set and obtain selection timeout values 🫢


✨ SYNTAX

#include <X11/Intrinsic.h>

unsigned long XtAppGetSelectionTimeout(XtAppContext app_context);

void XtAppSetSelectionTimeout(XtAppContext app_context, unsigned long
       timeout);

like... two functions, one header, no notes πŸ’–


πŸ¦‹ ARGUMENTS

  • app_context β€” specifies the application context. (your app's whole vibe container, basically)
  • timeout β€” specifies the selection timeout in milliseconds. ⏱️

πŸ‘‘ DESCRIPTION

So XtAppGetSelectionTimeout returns the current selection timeout value, in milliseconds. That's it, that's the whole function, she's simple and she ate. πŸ’…

And what even is the selection timeout? It's the time within which the two communicating applications have to respond to one another. Like a group chat where both people actually have to text back in time or the convo dies. 😭

The initial timeout value is set by the selectionTimeout application resource, or β€” if selectionTimeout is not specified β€” it defaults to five seconds. no cap.

Then XtAppSetSelectionTimeout sets the Intrinsics's selection timeout mechanism. πŸ› οΈ

⚠️ real talk though: most applications should not set the selection timeout. Note that. The manpage said it, I said it, it's canon. Leave it alone bestie, it's not your business. πŸ™ˆ

🌸 SEE ALSO

  • XtOwnSelection(3)
  • X Toolkit Intrinsics - C Language Interface
  • Xlib - C Language X Interface

and that's the whole page, you're welcome, you're doing amazing, drink some water πŸ§šπŸ’œ

k byeeee β€” this came to you from X Version 11, libXt 1.3.1, and the header/footer date situation of XtAppGetSelectionTimeout(3). mwah πŸ’‹

πŸ“¦ where this page comes from