Bugfix: Flush the Xlib connection after creating cursors
Fixes a race condition where the cursors were created after we were already using them.
This commit is contained in:
parent
26635a7595
commit
d8bf633e56
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue