Call gdk_x11_display_grab() on the default display. To ungrab the server again, use gdk_x11_ungrab_server(). gdk_x11_grab_server()/gdk_x11_ungrab_server() calls can be nested.
See Implementation
Call gdk_x11_display_grab() on the default display. To ungrab the server again, use gdk_x11_ungrab_server(). gdk_x11_grab_server()/gdk_x11_ungrab_server() calls can be nested.