From d8bf633e56783f6ecbcee836d8597854331d8d26 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 1 Apr 2011 21:57:08 +0200 Subject: [PATCH] Bugfix: Flush the Xlib connection after creating cursors Fixes a race condition where the cursors were created after we were already using them. --- src/xcursor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xcursor.c b/src/xcursor.c index ee77d0c1..54ef34d2 100644 --- a/src/xcursor.c +++ b/src/xcursor.c @@ -28,6 +28,8 @@ void xcursor_load_cursors() { cursors[XCURSOR_CURSOR_POINTER] = load_cursor("left_ptr"); cursors[XCURSOR_CURSOR_RESIZE_HORIZONTAL] = load_cursor("sb_h_double_arrow"); cursors[XCURSOR_CURSOR_RESIZE_VERTICAL] = load_cursor("sb_v_double_arrow"); + + XFlush(xlibdpy); } Cursor xcursor_get_cursor(enum xcursor_cursor_t c) {