aboutsummaryrefslogtreecommitdiffstats
path: root/code/unix
diff options
context:
space:
mode:
authoricculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-08-31 17:57:44 +0000
committericculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-08-31 17:57:44 +0000
commit389b14cfcd3855222e0fafbbc40cbb71df595fef (patch)
tree3e7bd24e9fc24f5643fb9c1ece0b0f6c4720fda4 /code/unix
parent37fe8d6b9a76c7c72bc0759035b3c60229177da7 (diff)
downloadioquake3-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.c2
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);
}