Fix incorrect porting of XCreateFontCursor()
This commit is contained in:
parent
6db3cd48d8
commit
fa5bc02103
|
@ -165,13 +165,13 @@ create_font_cursor(unsigned int cursor_font)
|
||||||
|
|
||||||
/* Get the font for the cursor*/
|
/* Get the font for the cursor*/
|
||||||
font = xcb_generate_id(globalconf.connection);
|
font = xcb_generate_id(globalconf.connection);
|
||||||
xcb_open_font(globalconf.connection, font, strlen ("cursor"), "cursor");
|
xcb_open_font(globalconf.connection, font, strlen("cursor"), "cursor");
|
||||||
|
|
||||||
cursor = xcb_generate_id(globalconf.connection);
|
cursor = xcb_generate_id(globalconf.connection);
|
||||||
xcb_create_glyph_cursor (globalconf.connection, cursor, font, font,
|
xcb_create_glyph_cursor (globalconf.connection, cursor, font, font,
|
||||||
cursor_font, cursor_font + 1,
|
cursor_font, cursor_font + 1,
|
||||||
0, 0, 0,
|
0, 0, 0,
|
||||||
0, 0, 0);
|
65535, 65535, 65535);
|
||||||
|
|
||||||
return cursor;
|
return cursor;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue