diff options
author | icculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-08-31 17:57:44 +0000 |
---|---|---|
committer | icculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-08-31 17:57:44 +0000 |
commit | 389b14cfcd3855222e0fafbbc40cbb71df595fef (patch) | |
tree | 3e7bd24e9fc24f5643fb9c1ece0b0f6c4720fda4 /code/unix | |
parent | 37fe8d6b9a76c7c72bc0759035b3c60229177da7 (diff) | |
download | ioquake3-aero-389b14cfcd3855222e0fafbbc40cbb71df595fef.tar.gz ioquake3-aero-389b14cfcd3855222e0fafbbc40cbb71df595fef.zip |
Show the system cursor when ungrabbing the mouse, so you know it's
been ungrabbed.
git-svn-id: svn://svn.icculus.org/quake3/trunk@49 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/unix')
-rw-r--r-- | code/unix/linux_glimp_sdl.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/code/unix/linux_glimp_sdl.c b/code/unix/linux_glimp_sdl.c index 8eba4f4..1202b70 100644 --- a/code/unix/linux_glimp_sdl.c +++ b/code/unix/linux_glimp_sdl.c @@ -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); } |