From 389b14cfcd3855222e0fafbbc40cbb71df595fef Mon Sep 17 00:00:00 2001 From: icculus Date: Wed, 31 Aug 2005 17:57:44 +0000 Subject: 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 --- code/unix/linux_glimp_sdl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'code/unix') 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); } -- cgit v1.2.3