Call grab on the default display.
To ungrab the server again, use ungrab_server.
grab_server/gdk_x11_ungrab_server() calls can be nested.