x11: Flush the X output buffer after changing mouse mode

(cherry picked from commit 5907a007dc)
This commit is contained in:
Ignacio Etcheverry 2016-04-12 16:20:28 +02:00 committed by Rémi Verschelde
parent f32a4dc516
commit 52bf4a76b2
1 changed files with 2 additions and 0 deletions

View File

@ -541,6 +541,8 @@ void OS_X11::set_mouse_mode(MouseMode p_mode) {
} else { } else {
do_mouse_warp=false; do_mouse_warp=false;
} }
XFlush(x11_display);
} }
void OS_X11::warp_mouse_pos(const Point2& p_to) { void OS_X11::warp_mouse_pos(const Point2& p_to) {