XGrabKeyboard behavior - Xwindows

This is a discussion on XGrabKeyboard behavior - Xwindows ; My application has the usual main event processing loop which directs events
to their appropriate widgets.
I have an OpenGL widget which I am making full screen, and to which I want
all mouse and keyboard events delivered.
To make ...

XGrabKeyboard behavior

My application has the usual main event processing loop which directs events
to their appropriate widgets.

I have an OpenGL widget which I am making full screen, and to which I want
all mouse and keyboard events delivered.

To make the window full screen, I have to use the CWOverrideRedirect mask
when creating the window. However, this kills all mouse and keyboard
events that would normally go to that window. Here's the full set of masks
I'm using to create the full screen window: