From: Michael Stapelberg Date: Fri, 1 Apr 2011 19:57:08 +0000 (+0200) Subject: Bugfix: Flush the Xlib connection after creating cursors X-Git-Tag: tree-pr3~82 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d8bf633e56783f6ecbcee836d8597854331d8d26;p=i3%2Fi3 Bugfix: Flush the Xlib connection after creating cursors Fixes a race condition where the cursors were created after we were already using them. --- 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) {