diff options
author | hurikhan <m4r10.5ch14ck@gmail.com> | 2015-02-15 17:49:34 +0800 |
---|---|---|
committer | hurikhan <m4r10.5ch14ck@gmail.com> | 2015-02-15 17:49:34 +0800 |
commit | ee81d4b359ec5dbeaed5725739ba53b7734372cd (patch) | |
tree | 50bff1e6e336fe66d0f58c00841403ce091d3f1c /platform/x11 | |
parent | a13e180052d2e17275498a2fa78185cc299ace11 (diff) | |
parent | 2185c018f6593e6d64b2beb62202d2291e2e008e (diff) |
Merge remote-tracking branch 'upstream/master' into x11-window-management
Diffstat (limited to 'platform/x11')
-rw-r--r-- | platform/x11/os_x11.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp index 9fb2a4c64d..4c86f5a82f 100644 --- a/platform/x11/os_x11.cpp +++ b/platform/x11/os_x11.cpp @@ -508,8 +508,12 @@ void OS_X11::warp_mouse_pos(const Point2& p_to) { last_mouse_pos=p_to; } else { + /*XWindowAttributes xwa; + XGetWindowAttributes(x11_display, x11_window, &xwa); + printf("%d %d\n", xwa.x, xwa.y); needed? */ + XWarpPointer(x11_display, None, x11_window, - 0,0,0,0, (int)p_to.x, (int)p_to.y); + 0,0,0,0, (int)p_to.x , (int)p_to.y); } } |