[AD] Xlib: unexpected async reply

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


Will they never end?

The attached patch fixes another one of them..

-- 
Elias Pschernig
Index: src/x/xwin.c
===================================================================
RCS file: /cvsroot/alleg/allegro/src/x/xwin.c,v
retrieving revision 1.89
diff -u -p -r1.89 xwin.c
--- src/x/xwin.c	17 Apr 2005 13:25:43 -0000	1.89
+++ src/x/xwin.c	20 Apr 2005 12:44:48 -0000
@@ -1562,10 +1562,12 @@ void _xwin_enable_hardware_cursor(int mo
    if (_xwin.hw_cursor_ok) {
       _xwin.mouse_warped = 0;
       /* Move X-cursor to Allegro cursor.  */
+      XLOCK();
       XWarpPointer(_xwin.display, _xwin.window, _xwin.window,
 		   0, 0, _xwin.window_width, _xwin.window_height,
 		   _mouse_x - (_xwin_mouse_extended_range ? _xwin.scroll_x : 0),
 		   _mouse_y - (_xwin_mouse_extended_range ? _xwin.scroll_y : 0));
+      XUNLOCK();
    }
 }
 


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/