src/video/gem/SDL_gemwm.c
changeset 2025 7312feb88dad
parent 1895 c121d94672cb
--- a/src/video/gem/SDL_gemwm.c	Tue Sep 12 19:44:51 2006 +0000
+++ b/src/video/gem/SDL_gemwm.c	Tue Sep 12 19:47:40 2006 +0000
@@ -113,7 +113,11 @@
 SDL_GrabMode
 GEM_GrabInput(_THIS, SDL_GrabMode mode)
 {
-    return SDL_GRAB_OFF;
+    if (this->screen == NULL) {
+        return SDL_GRAB_OFF;
+    }
+
+    return mode;
 }
 
 /* vi: set ts=4 sw=4 expandtab: */