src/events/SDL_windowevents.c
branchSDL-1.3
changeset 1733 0b1070f2f94d
parent 1731 875c3cf1a12c
child 1734 f7c667ded87d
--- a/src/events/SDL_windowevents.c	Sat Jul 08 20:55:39 2006 +0000
+++ b/src/events/SDL_windowevents.c	Sun Jul 09 09:02:26 2006 +0000
@@ -44,19 +44,27 @@
             return 0;
         }
         window->flags |= SDL_WINDOW_SHOWN;
+        SDL_OnWindowShown(window);
         break;
     case SDL_WINDOWEVENT_HIDDEN:
         if (!(window->flags & SDL_WINDOW_SHOWN)) {
             return 0;
         }
         window->flags &= ~SDL_WINDOW_SHOWN;
+        SDL_OnWindowHidden(window);
         break;
     case SDL_WINDOWEVENT_MOVED:
+        if (window->flags & SDL_WINDOW_FULLSCREEN) {
+            return 0;
+        }
         if (data1 == window->x && data2 == window->y) {
             return 0;
         }
         break;
     case SDL_WINDOWEVENT_RESIZED:
+        if (window->flags & SDL_WINDOW_FULLSCREEN) {
+            return 0;
+        }
         if (data1 == window->w && data2 == window->h) {
             return 0;
         }
@@ -96,12 +104,14 @@
             return 0;
         }
         window->flags |= SDL_WINDOW_KEYBOARD_FOCUS;
+        SDL_OnWindowFocusGained(window);
         break;
     case SDL_WINDOWEVENT_FOCUS_LOST:
         if (!(window->flags & SDL_WINDOW_KEYBOARD_FOCUS)) {
             return 0;
         }
         window->flags &= ~SDL_WINDOW_KEYBOARD_FOCUS;
+        SDL_OnWindowFocusLost(window);
         break;
     }