Browse Source

Merge pull request #4295 from neikeq/pr-issue-2232

x11: Flush the X output buffer after changing mouse mode
Rémi Verschelde 9 years ago
parent
commit
67682b35b0
1 changed files with 2 additions and 0 deletions
  1. 2 0
      platform/x11/os_x11.cpp

+ 2 - 0
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) {