src/video/x11/SDL_x11events.c
changeset 6476 9010d6830cdf
parent 6474 39087ac884d7
child 6481 fab4b15b17e9
equal deleted inserted replaced
6475:71d39944810b 6476:9010d6830cdf
   147         X11_HandleGenericEvent(videodata,xevent);
   147         X11_HandleGenericEvent(videodata,xevent);
   148         return;
   148         return;
   149     }
   149     }
   150 #endif
   150 #endif
   151 
   151 
       
   152 #if 0
       
   153     printf("type = %d display = %d window = %d\n",
       
   154            xevent.type, xevent.xany.display, xevent.xany.window);
       
   155 #endif
       
   156 
   152     data = NULL;
   157     data = NULL;
   153     if (videodata && videodata->windowlist) {
   158     if (videodata && videodata->windowlist) {
   154         for (i = 0; i < videodata->numwindows; ++i) {
   159         for (i = 0; i < videodata->numwindows; ++i) {
   155             if ((videodata->windowlist[i] != NULL) &&
   160             if ((videodata->windowlist[i] != NULL) &&
   156                 (videodata->windowlist[i]->xwindow == xevent.xany.window)) {
   161                 (videodata->windowlist[i]->xwindow == xevent.xany.window)) {
   161     }
   166     }
   162     if (!data) {
   167     if (!data) {
   163         return;
   168         return;
   164     }
   169     }
   165 
   170 
   166 #if 0
       
   167     printf("type = %d display = %d window = %d\n",
       
   168            xevent.type, xevent.xany.display, xevent.xany.window);
       
   169 #endif
       
   170     switch (xevent.type) {
   171     switch (xevent.type) {
   171 
   172 
   172         /* Gaining mouse coverage? */
   173         /* Gaining mouse coverage? */
   173     case EnterNotify:{
   174     case EnterNotify:{
   174 #ifdef DEBUG_XEVENTS
   175 #ifdef DEBUG_XEVENTS