* ecore: fix event_window for Ecore_SDL.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 17 Nov 2010 13:53:04 +0000 (13:53 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Wed, 17 Nov 2010 13:53:04 +0000 (13:53 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@54630 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore_sdl/ecore_sdl.c

index 89984aa..a19db4a 100644 (file)
@@ -133,6 +133,7 @@ _ecore_sdl_event_key(SDL_Event *event, double time)
 
    ev->timestamp = time;
    ev->window = 0;
+   ev->event_window = 0;
    ev->modifiers = _ecore_sdl_event_modifiers(SDL_GetModState());
    ev->key = NULL;
    ev->compose = NULL;
@@ -170,6 +171,7 @@ ecore_sdl_feed_events(void)
 
              ev->timestamp = time;
              ev->window = 0;
+             ev->event_window = 0;
              ev->modifiers = 0; /* FIXME: keep modifier around. */
              ev->x = event.motion.x;
              ev->y = event.motion.y;
@@ -191,6 +193,7 @@ ecore_sdl_feed_events(void)
 
                   ev->timestamp = time;
                   ev->window = 0;
+                  ev->event_window = 0;
                   ev->modifiers = 0; /* FIXME: keep modifier around. */
                   ev->direction = 0;
                   ev->z = event.button.button == SDL_BUTTON_WHEELDOWN ? -1 : 1;
@@ -206,6 +209,7 @@ ecore_sdl_feed_events(void)
 
                   ev->timestamp = time;
                   ev->window = 0;
+                  ev->event_window = 0;
                   ev->modifiers = 0; /* FIXME: keep modifier around. */
                   ev->buttons = event.button.button;
                   ev->double_click = 0;
@@ -223,6 +227,7 @@ ecore_sdl_feed_events(void)
              if (!ev) return ;
              ev->timestamp = time;
              ev->window = 0;
+             ev->event_window = 0;
              ev->modifiers = 0; /* FIXME: keep modifier around. */
              ev->buttons = event.button.button;
              ev->double_click = 0;