Bugfix: Flush the Xlib connection after creating cursors

Fixes a race condition where the cursors were created after we were already
using them.
next
Michael Stapelberg 2011-04-01 21:57:08 +02:00
parent 26635a7595
commit d8bf633e56
1 changed files with 2 additions and 0 deletions

View File

@ -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) {