From 4434bd221acd937e6dee8ad4341991e69b39e501 Mon Sep 17 00:00:00 2001 From: Adriano Moura Date: Tue, 6 Dec 2016 03:31:21 -0200 Subject: [PATCH] Fixes an issue where mouse is only sampled half the time. Very obvious when aiming with a mouse like in tyrquake. --- input/drivers/x11_input.c | 1 + 1 file changed, 1 insertion(+) diff --git a/input/drivers/x11_input.c b/input/drivers/x11_input.c index ef02e3e95e..533495d72d 100644 --- a/input/drivers/x11_input.c +++ b/input/drivers/x11_input.c @@ -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;