src/events/SDL_windowevents.c
branchSDL-1.3
changeset 1733 0b1070f2f94d
parent 1731 875c3cf1a12c
child 1734 f7c667ded87d
     1.1 --- a/src/events/SDL_windowevents.c	Sat Jul 08 20:55:39 2006 +0000
     1.2 +++ b/src/events/SDL_windowevents.c	Sun Jul 09 09:02:26 2006 +0000
     1.3 @@ -44,19 +44,27 @@
     1.4              return 0;
     1.5          }
     1.6          window->flags |= SDL_WINDOW_SHOWN;
     1.7 +        SDL_OnWindowShown(window);
     1.8          break;
     1.9      case SDL_WINDOWEVENT_HIDDEN:
    1.10          if (!(window->flags & SDL_WINDOW_SHOWN)) {
    1.11              return 0;
    1.12          }
    1.13          window->flags &= ~SDL_WINDOW_SHOWN;
    1.14 +        SDL_OnWindowHidden(window);
    1.15          break;
    1.16      case SDL_WINDOWEVENT_MOVED:
    1.17 +        if (window->flags & SDL_WINDOW_FULLSCREEN) {
    1.18 +            return 0;
    1.19 +        }
    1.20          if (data1 == window->x && data2 == window->y) {
    1.21              return 0;
    1.22          }
    1.23          break;
    1.24      case SDL_WINDOWEVENT_RESIZED:
    1.25 +        if (window->flags & SDL_WINDOW_FULLSCREEN) {
    1.26 +            return 0;
    1.27 +        }
    1.28          if (data1 == window->w && data2 == window->h) {
    1.29              return 0;
    1.30          }
    1.31 @@ -96,12 +104,14 @@
    1.32              return 0;
    1.33          }
    1.34          window->flags |= SDL_WINDOW_KEYBOARD_FOCUS;
    1.35 +        SDL_OnWindowFocusGained(window);
    1.36          break;
    1.37      case SDL_WINDOWEVENT_FOCUS_LOST:
    1.38          if (!(window->flags & SDL_WINDOW_KEYBOARD_FOCUS)) {
    1.39              return 0;
    1.40          }
    1.41          window->flags &= ~SDL_WINDOW_KEYBOARD_FOCUS;
    1.42 +        SDL_OnWindowFocusLost(window);
    1.43          break;
    1.44      }
    1.45