src/video/x11/SDL_x11events.c
changeset 2327 7b53a8401195
parent 2326 133562468ff2
child 2328 91e601d9df8b
equal deleted inserted replaced
2326:133562468ff2 2327:7b53a8401195
    41     XNextEvent(videodata->display, &xevent);
    41     XNextEvent(videodata->display, &xevent);
    42 
    42 
    43     /* filter events catchs XIM events and sends them to the correct
    43     /* filter events catchs XIM events and sends them to the correct
    44        handler */
    44        handler */
    45     if (XFilterEvent(&xevent, None) == True) {
    45     if (XFilterEvent(&xevent, None) == True) {
    46 #ifdef DEBUG_XEVENTS
    46 #if 0
    47         printf("Filtered event of type = 0x%X\n", xevent.type);
    47       printf("Filtered event type = %d display = %d window = %d\n", 
       
    48              xevent.type, xevent.xany.display, xevent.xany.window);
    48 #endif
    49 #endif
    49         return;
    50         return;
    50     }
    51     }
    51 
    52 
    52     /* Send a SDL_SYSWMEVENT if the application wants them */
    53     /* Send a SDL_SYSWMEVENT if the application wants them */
    71     }
    72     }
    72     if (!data) {
    73     if (!data) {
    73         return;
    74         return;
    74     }
    75     }
    75 
    76 
       
    77 #if 0
       
    78       printf("type = %d display = %d window = %d\n", 
       
    79              xevent.type, xevent.xany.display, xevent.xany.window);
       
    80 #endif
    76     switch (xevent.type) {
    81     switch (xevent.type) {
    77 
    82 
    78         /* Gaining mouse coverage? */
    83         /* Gaining mouse coverage? */
    79     case EnterNotify:{
    84     case EnterNotify:{
    80 #ifdef DEBUG_XEVENTS
    85 #ifdef DEBUG_XEVENTS