summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhurikhan <m4r10.5ch14ck@gmail.com>2015-03-08 04:24:21 -0500
committerhurikhan <m4r10.5ch14ck@gmail.com>2015-03-08 04:24:21 -0500
commit52a4e8495c6b9324f3c61f85c3ed3708c3e93213 (patch)
treef828c57a2573362008eb80683e1785f4476a76d7
parent5241626dee5aa7f91da7d7ac5476fb76e1d0b89e (diff)
fix introduced bug
-rw-r--r--platform/x11/os_x11.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp
index 8def564562..8196281732 100644
--- a/platform/x11/os_x11.cpp
+++ b/platform/x11/os_x11.cpp
@@ -1286,7 +1286,7 @@ void OS_X11::process_xevents() {
motion_event.mouse_motion.x=pos.x;
motion_event.mouse_motion.y=pos.y;
input->set_mouse_pos(pos);
- motion_event.mouse_motion.global_x=pos.y;
+ motion_event.mouse_motion.global_x=pos.x;
motion_event.mouse_motion.global_y=pos.y;
motion_event.mouse_motion.speed_x=input->get_mouse_speed().x;
motion_event.mouse_motion.speed_y=input->get_mouse_speed().y;