Assume xcb_cursor_context_new never fails (#3955)
According to libxcb-cursor code, the only condition in which xcb_cursor_context_new() returns a non-zero result is a memory allocation failure[1]. Thus, it is safe to assume that xcursor_supported is always true, and remove dead code. [1]: https://gitlab.freedesktop.org/xorg/lib/libxcb-cursor/blob/0.1.3/cursor/cursor.c#L131-132
This commit is contained in:
@ -71,7 +71,7 @@ extern uint8_t root_depth;
|
||||
extern xcb_visualid_t visual_id;
|
||||
extern xcb_colormap_t colormap;
|
||||
|
||||
extern bool xcursor_supported, xkb_supported, shape_supported;
|
||||
extern bool xkb_supported, shape_supported;
|
||||
extern xcb_window_t root;
|
||||
extern struct ev_loop *main_loop;
|
||||
extern bool only_check_config;
|
||||
|
Reference in New Issue
Block a user