GLXGETCURRENTDISPLAY(3G)

πŸ“¦ version 1.1, in centos-stream 9, fedora 43, fedora 44

πŸ’– GLXGETCURRENTDISPLAY πŸ’–

okay bestie, so this whole page is about glXGetCurrentDisplay β€” the little GLX function whose entire job is telling you which display your current context is living on. that's it. that's the whole girlboss. ✨


🌸 NAME 🌸

glXGetCurrentDisplay β€” get display for current context πŸ–₯οΈπŸ’…


πŸŽ€ C SPECIFICATION πŸŽ€

Display * glXGetCurrentDisplay( void )
delim $$

πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: glXGetCurrentDisplay returns the display for the current context. like, the display your current context is attached to. that's the whole vibe. 🫢

and if there is no context current? then it hands you back NULL. nothing. void. the empty iced coffee of return values. 😭

important bestie moment: glXGetCurrentDisplay returns client-side information. it does not make a round trip to the server, and therefore it does not flush any pending events. so don't be out here expecting it to poke the server for you β€” she's local only, no cap. πŸ”₯

πŸ‘‘ NOTES πŸ‘‘

glXGetCurrentDisplay is only supported if the GLX version is 1.2 or greater. older than that and it's giving unsupported, periodt. πŸ’€


🌈 SEE ALSO 🌈

  • glXQueryVersion
  • glXQueryExtensionsString

and that's a wrap, bestie πŸŽ€ this cutie came to you straight from the GLXGETCURRENTDISPLAY() page, and yes, the header at the top of this whole thing literally says GLXGETCURRENTDISPLAY() too β€” the page name is doing main character energy twice. mwah. πŸ’œβœ¨

πŸ“¦ where this page comes from