summaryrefslogtreecommitdiff
blob: 5d2a85a68e9bf27a976d641c6b386fdae1fed677 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/src/linux/rw_x11.c
+++ b/src/linux/rw_x11.c
@@ -989,8 +989,8 @@
 	} 
 	else 
 	  {
-	    mx -= ((int)event.xmotion.x + mwx)*2;
-	    my -= ((int)event.xmotion.y + mwy)*2;
+	    mx += ((int)event.xmotion.x - mwx)*2;
+	    my += ((int)event.xmotion.y - mwy)*2;
 	    mwx = event.xmotion.x;
 	    mwy = event.xmotion.y;