Index: source/ps/VideoMode.cpp
===================================================================
--- source/ps/VideoMode.cpp	(revision 8012)
+++ source/ps/VideoMode.cpp	(working copy)
@@ -75,6 +75,11 @@
 		return false;
 	}
 
+	if (fullscreen)
+		SDL_WM_GrabInput(SDL_GRAB_ON);
+	else
+		SDL_WM_GrabInput(SDL_GRAB_OFF);
+
 	m_IsFullscreen = fullscreen;
 	m_CurrentW = w;
 	m_CurrentH = h;

