Fixes an issue where mouse is only sampled half the time.

Very obvious when aiming with a mouse like in tyrquake.
This commit is contained in:
Adriano Moura 2016-12-06 03:31:21 -02:00
parent 6f05fe0ff5
commit 4434bd221a

View File

@ -316,6 +316,7 @@ static void x_input_poll_mouse(x11_input_t *x11)
XWarpPointer(x11->display, None,
x11->win, 0, 0, 0, 0,
mid_w, mid_h);
XSync(x11->display, False);
}
x11->mouse_last_x = mid_w;
x11->mouse_last_y = mid_h;