XSynchronize(3)

🌸 NAME 🌸

okay bestie, this is XSynchronize(3) from the XLIB FUNCTIONS crew β€” it's all about enabling or disabling synchronization, plus the XSetAfterFunction bestie that comes with it πŸ’…βœ¨

✨ SYNTAX ✨

int (*XSynchronize(Display *display, Bool onoff))();

int (*XSetAfterFunction(Display *display, int (*procedure)()))();

πŸŽ€ ARGUMENTS πŸŽ€

  • display β€” specifies the connection to the X server. your whole link to the X world, basically 🫢
  • procedure β€” specifies the procedure to be called. yes, that exact one, no substitutions πŸ”₯
  • onoff β€” specifies a Boolean value that indicates whether to enable or disable synchronization. True = on, False = off, iconic behavior tbh πŸ’–

πŸ’… DESCRIPTION πŸ’…

so the XSynchronize function returns the previous after function β€” yep, it hands you the old one back. if onoff is True, XSynchronize turns on synchronous behavior ✨. if onoff is False, XSynchronize turns off synchronous behavior πŸ’€. simple as that, no cap.

the specified procedure is called with only a display pointer β€” that's the whole guest list, bestie πŸŽ€. and XSetAfterFunction returns the previous after function too, because consistency is main character energy πŸ‘‘.

πŸ¦‹ SEE ALSO πŸ¦‹


X Version 11 Β· libX11 1.8.14 β€” that's the source/version footer energy, bestie, and there's literally no date printed on this page, so this cute sign-off is doing double duty πŸŽ€πŸ’œ

πŸ“¦ where this page comes from