diff src/video/gem/SDL_gemwm.c @ 3859:5d14acfdf84d SDL-1.2

Allow grabing mouse by locking its position
author Patrice Mandin <patmandin@gmail.com>
date Tue, 12 Sep 2006 19:34:18 +0000
parents d910939febfa
children a1b03ba2fcd0
line wrap: on
line diff
--- a/src/video/gem/SDL_gemwm.c	Tue Sep 12 19:33:33 2006 +0000
+++ b/src/video/gem/SDL_gemwm.c	Tue Sep 12 19:34:18 2006 +0000
@@ -108,5 +108,9 @@
 
 SDL_GrabMode GEM_GrabInput(_THIS, SDL_GrabMode mode)
 {
-	return SDL_GRAB_OFF;
+	if (this->screen == NULL) {
+		return SDL_GRAB_OFF;
+	}
+
+	return mode;
 }