From 3ca7408da3ee139ce91e7731c15e115c5e1bece5 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sun, 4 Jan 2009 19:26:50 +0000 Subject: [PATCH] Technically more correct --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%403455 --- src/video/x11/SDL_x11events.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/video/x11/SDL_x11events.c b/src/video/x11/SDL_x11events.c index 1b6d43366..9d8125ba8 100644 --- a/src/video/x11/SDL_x11events.c +++ b/src/video/x11/SDL_x11events.c @@ -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;