summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@freedesktop.org>2009-08-01 12:43:14 -0700
committerJeremy Huddleston <jeremyhu@freedesktop.org>2009-08-01 12:43:14 -0700
commit65ae2d00e1a53f97f2ff9522406ab69d50bf3199 (patch)
tree96b5df039be97ee2afbf4f722f1cc66c06beb4f8
parent6c5bf756a7f5389cdfe2e43a339d7c31a3e522e9 (diff)
XQuartz: Use mouseLocation rather than locationInWindow when setting lastpt
I don't understand the *why* ... I just see that it works better this way for games like Quake2 through wine. It *should* be better the other way, but somehow it's not. I guess this will go in my list of puzzles to unravel.
-rw-r--r--hw/xquartz/X11Application.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xquartz/X11Application.m b/hw/xquartz/X11Application.m
index 9d6ee71a5..5d28132bf 100644
--- a/hw/xquartz/X11Application.m
+++ b/hw/xquartz/X11Application.m
@@ -1027,7 +1027,7 @@ static inline int ensure_flag(int flags, int device_independent, int device_depe
} else {
location.x = lastpt.x + [e deltaX];
location.y = lastpt.y - [e deltaY];
- lastpt = [e locationInWindow];
+ lastpt = [NSEvent mouseLocation]; // [e locationInWindow] gives us the "unfixed" location when our cursor is fixed. This bugs things like quake
}
/* Convert coordinate system */