diff src/video/SDL_video.c @ 3517:e7eec78e4b92

Fixed mouse events for fullscreen windows on Mac OS X
author Sam Lantinga <slouken@libsdl.org>
date Thu, 03 Dec 2009 08:33:39 +0000
parents 72e70a8c30d5
children e6f2f312780f
line wrap: on
line diff
--- a/src/video/SDL_video.c	Thu Dec 03 05:05:26 2009 +0000
+++ b/src/video/SDL_video.c	Thu Dec 03 08:33:39 2009 +0000
@@ -768,6 +768,7 @@
             SDL_DisplayMode fullscreen_mode;
             if (SDL_GetWindowDisplayMode(window->id, &fullscreen_mode) == 0) {
                 SDL_SetDisplayModeForDisplay(display, &fullscreen_mode);
+                display->fullscreen_window = window;
                 return;
             }
         }
@@ -775,6 +776,7 @@
 
     /* Nope, restore the desktop mode */
     SDL_SetDisplayModeForDisplay(display, NULL);
+    display->fullscreen_window = NULL;
 }
 
 int