Skip to content

Commit

Permalink
Show the system cursor when ungrabbing the mouse, so you know it's
Browse files Browse the repository at this point in the history
 been ungrabbed.
  • Loading branch information
icculus committed Aug 31, 2005
1 parent a654321 commit 23d08fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code/unix/linux_glimp_sdl.c
Expand Up @@ -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);
}

Expand Down

0 comments on commit 23d08fa

Please sign in to comment.