Browse Source

x11: Flush the X output buffer after changing mouse mode

Ignacio Etcheverry 9 năm trước cách đây
mục cha
commit
5907a007dc
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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) {