diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2012-10-19 00:17:41 +0200 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2012-10-19 00:17:41 +0200 |
commit | d2db8764f90f3cdb9362625d4540f6740e23701a (patch) | |
tree | dcc5b25987d0c9245458d1a9bd8f552626f3b6c6 /apps/x11_main.c | |
parent | 9cd836ca656584f7d9148faba0039c21f503512b (diff) | |
download | mupdf-d2db8764f90f3cdb9362625d4540f6740e23701a.tar.xz |
Fix bug where X11 motion events were parsed as button events
Diffstat (limited to 'apps/x11_main.c')
-rw-r--r-- | apps/x11_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/x11_main.c b/apps/x11_main.c index fc2a0c54..d3450c89 100644 --- a/apps/x11_main.c +++ b/apps/x11_main.c @@ -833,9 +833,9 @@ int main(int argc, char **argv) break; case MotionNotify: - oldx = xevt.xbutton.x; - oldy = xevt.xbutton.y; - onmouse(xevt.xbutton.x, xevt.xbutton.y, xevt.xbutton.button, xevt.xbutton.state, 0); + oldx = xevt.xmotion.x; + oldy = xevt.xmotion.y; + onmouse(xevt.xmotion.x, xevt.xmotion.y, 0, xevt.xmotion.state, 0); break; case ButtonPress: |