ionagamed
ionagamed

Reputation: 536

GLUT fetching the X11 Display*

I want to use XGrabKeyboard in my GLUT app. It wants Display* as a first argument. How do I fetch it from GLUT?

Upvotes: 1

Views: 263

Answers (1)

ionagamed
ionagamed

Reputation: 536

Okay, nevermind. I found up glXGetCurrentDisplay()

Upvotes: 1

Related Questions