diff src/events/SDL_windowevents.c @ 2875:91a7e08cd238

* Implemented X11 fullscreen input grab * Progress towards being able to toggle in and out of fullscreen mode
author Sam Lantinga <slouken@libsdl.org>
date Wed, 17 Dec 2008 07:17:54 +0000
parents 99210400e8b9
children 98a819296cdc
line wrap: on
line diff
--- a/src/events/SDL_windowevents.c	Tue Dec 16 17:44:10 2008 +0000
+++ b/src/events/SDL_windowevents.c	Wed Dec 17 07:17:54 2008 +0000
@@ -58,6 +58,12 @@
         if (window->flags & SDL_WINDOW_FULLSCREEN) {
             return 0;
         }
+        if (data1 == SDL_WINDOWPOS_UNDEFINED) {
+            data1 = window->x;
+        }
+        if (data2 == SDL_WINDOWPOS_UNDEFINED) {
+            data2 = window->y;
+        }
         if (data1 == window->x && data2 == window->y) {
             return 0;
         }