Show the system cursor when ungrabbing the mouse, so you know it's

been ungrabbed.
This commit is contained in:
Ryan C. Gordon 2005-08-31 17:57:44 +00:00
parent a65432119b
commit 23d08fae65

View file

@ -254,11 +254,13 @@ static const char *XLateKey(SDL_keysym *keysym, int *key)
static void install_grabs(void) static void install_grabs(void)
{ {
SDL_ShowCursor(0);
SDL_WM_GrabInput(SDL_GRAB_ON); SDL_WM_GrabInput(SDL_GRAB_ON);
} }
static void uninstall_grabs(void) static void uninstall_grabs(void)
{ {
SDL_ShowCursor(1);
SDL_WM_GrabInput(SDL_GRAB_OFF); SDL_WM_GrabInput(SDL_GRAB_OFF);
} }