src/events/SDL_windowevents.c
branchSDL-1.3
changeset 1724 6c63fc2bd986
parent 1722 5daa04d862f1
child 1731 875c3cf1a12c
--- a/src/events/SDL_windowevents.c	Thu Jul 06 05:53:32 2006 +0000
+++ b/src/events/SDL_windowevents.c	Thu Jul 06 07:17:11 2006 +0000
@@ -28,8 +28,8 @@
 #include "../video/SDL_sysvideo.h"
 
 int
-SDL_PrivateWindowEvent(SDL_WindowID windowID, Uint8 windowevent, int data1,
-                       int data2)
+SDL_SendWindowEvent(SDL_WindowID windowID, Uint8 windowevent, int data1,
+                    int data2)
 {
     int posted;
     SDL_Window *window;
@@ -51,6 +51,16 @@
         }
         window->flags &= ~SDL_WINDOW_SHOWN;
         break;
+    case SDL_WINDOWEVENT_MOVED:
+        if (data1 == window->x && data2 == window->y) {
+            return 0;
+        }
+        break;
+    case SDL_WINDOWEVENT_RESIZED:
+        if (data1 == window->w && data2 == window->h) {
+            return 0;
+        }
+        break;
     case SDL_WINDOWEVENT_MINIMIZED:
         if (window->flags & SDL_WINDOW_MINIMIZED) {
             return 0;