Hongli Lai wrote:
Take a look at the documentation for gdk_keyboard_grab().Basically it makes sure that only one window can receive keyboard information, thus blocking the window manager and everything else from receiving keyboard info.
I mean gdk_pointer_grab() Replace "keyboard" with "mouse".