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
1 changed files with 2 additions and 0 deletions

View File

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