src/video/x11/SDL_x11events.c
changeset 2324 3202e4826c57
parent 2323 4ac07ae446d3
child 2325 c7bcf84ba1b9
     1.1 --- a/src/video/x11/SDL_x11events.c	Thu Mar 06 23:07:02 2008 +0000
     1.2 +++ b/src/video/x11/SDL_x11events.c	Fri Mar 07 17:20:37 2008 +0000
     1.3 @@ -51,15 +51,14 @@
     1.4      }
     1.5  
     1.6      data = NULL;
     1.7 -    if (videodata && 
     1.8 -        videodata->windowlist) {
     1.9 -      for (i = 0; i < videodata->numwindows; ++i) {
    1.10 -        if ((videodata->windowlist[i] != NULL) &&
    1.11 -            (videodata->windowlist[i]->window == xevent.xany.window)) {
    1.12 -          data = videodata->windowlist[i];
    1.13 -          break;
    1.14 +    if (videodata && videodata->windowlist) {
    1.15 +        for (i = 0; i < videodata->numwindows; ++i) {
    1.16 +            if ((videodata->windowlist[i] != NULL) &&
    1.17 +                (videodata->windowlist[i]->window == xevent.xany.window)) {
    1.18 +                data = videodata->windowlist[i];
    1.19 +                break;
    1.20 +            }
    1.21          }
    1.22 -      }
    1.23      }
    1.24      if (!data) {
    1.25          return;