From 52bf4a76b2138899f5b47f830847c53b8612882a Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Tue, 12 Apr 2016 16:20:28 +0200 Subject: [PATCH] x11: Flush the X output buffer after changing mouse mode (cherry picked from commit 5907a007dc2e9dd7c89649cfed42dbc0239e4b42) --- platform/x11/os_x11.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/x11/os_x11.cpp b/platform/x11/os_x11.cpp index f60610693f8..4d7532d6374 100644 --- a/platform/x11/os_x11.cpp +++ b/platform/x11/os_x11.cpp @@ -541,6 +541,8 @@ void OS_X11::set_mouse_mode(MouseMode p_mode) { } else { do_mouse_warp=false; } + + XFlush(x11_display); } void OS_X11::warp_mouse_pos(const Point2& p_to) {