From 9cf48f17bbd1ada665d11891e5f388b6ce9e2136 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fernando=20Tarl=C3=A1=20Cardoso=20Lemos?= Date: Sat, 5 Feb 2011 14:23:02 -0200 Subject: [PATCH] Fix libxcursor -> xcb cursors fallback. --- src/xcursor.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/xcursor.c b/src/xcursor.c index cd80aa68..ee77d0c1 100644 --- a/src/xcursor.c +++ b/src/xcursor.c @@ -17,17 +17,17 @@ static const int xcb_cursors[XCURSOR_CURSOR_MAX] = { XCB_CURSOR_SB_V_DOUBLE_ARROW }; -static Cursor load_cursor(const char *name, int font) { +static Cursor load_cursor(const char *name) { Cursor c = XcursorLibraryLoadCursor(xlibdpy, name); if (c == None) - c = XCreateFontCursor(xlibdpy, font); + xcursor_supported = false; return c; } void xcursor_load_cursors() { - cursors[XCURSOR_CURSOR_POINTER] = load_cursor("left_ptr", XC_left_ptr); - cursors[XCURSOR_CURSOR_RESIZE_HORIZONTAL] = load_cursor("sb_h_double_arrow", XC_sb_h_double_arrow); - cursors[XCURSOR_CURSOR_RESIZE_VERTICAL] = load_cursor("sb_v_double_arrow", XC_sb_v_double_arrow); + 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"); } Cursor xcursor_get_cursor(enum xcursor_cursor_t c) { -- 2.39.5