src/video/gem/SDL_gemwm.c
branchSDL-1.2
changeset 3859 5d14acfdf84d
parent 1402 d910939febfa
child 4159 a1b03ba2fcd0
--- 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;
 }