Technically more correct
authorSam Lantinga <slouken@libsdl.org>
Sun, 04 Jan 2009 19:26:50 +0000
changeset 29932fad80c77c17
parent 2992 dbff5769d742
child 2994 7563b99e9a49
Technically more correct
src/video/x11/SDL_x11events.c
     1.1 --- a/src/video/x11/SDL_x11events.c	Sun Jan 04 18:29:20 2009 +0000
     1.2 +++ b/src/video/x11/SDL_x11events.c	Sun Jan 04 19:26:50 2009 +0000
     1.3 @@ -294,15 +294,15 @@
     1.4  #ifdef DEBUG_MOTION
     1.5                          printf("X11 motion: %d,%d\n", xevent.xmotion.x, xevent.xmotion.y);
     1.6  #endif
     1.7 -                        SDL_SendMouseMotion(0, 0, xevent.xmotion.x, xevent.xmotion.y, 0);
     1.8 +                        SDL_SendMouseMotion(mouse->id, 0, xevent.xmotion.x, xevent.xmotion.y, 0);
     1.9                          break;
    1.10  
    1.11                      case ButtonPress:
    1.12 -                        SDL_SendMouseButton(0, SDL_PRESSED, xevent.xbutton.button);
    1.13 +                        SDL_SendMouseButton(mouse->id, SDL_PRESSED, xevent.xbutton.button);
    1.14                          break;
    1.15  
    1.16                      case ButtonRelease:
    1.17 -                        SDL_SendMouseButton(0, SDL_RELEASED, xevent.xbutton.button);
    1.18 +                        SDL_SendMouseButton(mouse->id, SDL_RELEASED, xevent.xbutton.button);
    1.19                          break;
    1.20                      }
    1.21                      continue;