From 23d08fae651ea5a7d7a36d12e13c685355f859ec Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 31 Aug 2005 17:57:44 +0000 Subject: [PATCH] Show the system cursor when ungrabbing the mouse, so you know it's been ungrabbed. --- code/unix/linux_glimp_sdl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/code/unix/linux_glimp_sdl.c b/code/unix/linux_glimp_sdl.c index 8eba4f48..1202b70c 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); }