mirror of https://github.com/polybar/polybar.git
fix(cursor): change arrow_names to default_names
This commit is contained in:
parent
1886cf97a8
commit
b7f1960a0a
|
@ -16,7 +16,7 @@ POLYBAR_NS
|
||||||
|
|
||||||
namespace cursor_util {
|
namespace cursor_util {
|
||||||
static const vector<string> pointer_names {"pointing_hand", "pointer", "hand", "hand1", "hand2", "e29285e634086352946a0e7090d73106", "9d800788f1b08800ae810202380a0822"};
|
static const vector<string> pointer_names {"pointing_hand", "pointer", "hand", "hand1", "hand2", "e29285e634086352946a0e7090d73106", "9d800788f1b08800ae810202380a0822"};
|
||||||
static const vector<string> arrow_names {"left_ptr", "arrow", "dnd-none", "op_left_arrow"};
|
static const vector<string> default_names {"left_ptr", "arrow", "dnd-none", "op_left_arrow"};
|
||||||
static const vector<string> ns_resize_names {"size_ver", "sb_v_double_arrow", "v_double_arrow", "n-resize", "s-resize", "col-resize", "top_side", "bottom_side", "base_arrow_up", "base_arrow_down", "based_arrow_down", "based_arrow_up", "00008160000006810000408080010102"};
|
static const vector<string> ns_resize_names {"size_ver", "sb_v_double_arrow", "v_double_arrow", "n-resize", "s-resize", "col-resize", "top_side", "bottom_side", "base_arrow_up", "base_arrow_down", "based_arrow_down", "based_arrow_up", "00008160000006810000408080010102"};
|
||||||
bool set_cursor(xcb_connection_t *c, xcb_screen_t *screen, xcb_window_t w, string name);
|
bool set_cursor(xcb_connection_t *c, xcb_screen_t *screen, xcb_window_t w, string name);
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,8 +16,8 @@ namespace cursor_util {
|
||||||
name_list = &pointer_names;
|
name_list = &pointer_names;
|
||||||
} else if (string_util::compare("ns-resize", name)) {
|
} else if (string_util::compare("ns-resize", name)) {
|
||||||
name_list = &ns_resize_names;
|
name_list = &ns_resize_names;
|
||||||
} else { //default
|
} else {
|
||||||
name_list = &arrow_names;
|
name_list = &default_names;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (auto&& cursor_name : *name_list) {
|
for (auto&& cursor_name : *name_list) {
|
||||||
|
|
Loading…
Reference in New Issue