Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Technically more correct
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Jan 4, 2009
1 parent 6e15856 commit 857db96
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/video/x11/SDL_x11events.c
Expand Up @@ -294,15 +294,15 @@ X11_DispatchEvent(_THIS)
#ifdef DEBUG_MOTION
printf("X11 motion: %d,%d\n", xevent.xmotion.x, xevent.xmotion.y);
#endif
SDL_SendMouseMotion(0, 0, xevent.xmotion.x, xevent.xmotion.y, 0);
SDL_SendMouseMotion(mouse->id, 0, xevent.xmotion.x, xevent.xmotion.y, 0);
break;

case ButtonPress:
SDL_SendMouseButton(0, SDL_PRESSED, xevent.xbutton.button);
SDL_SendMouseButton(mouse->id, SDL_PRESSED, xevent.xbutton.button);
break;

case ButtonRelease:
SDL_SendMouseButton(0, SDL_RELEASED, xevent.xbutton.button);
SDL_SendMouseButton(mouse->id, SDL_RELEASED, xevent.xbutton.button);
break;
}
continue;
Expand Down

0 comments on commit 857db96

Please sign in to comment.