diff options
Diffstat (limited to 'sway/input')
-rw-r--r-- | sway/input/cursor.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/cursor.c b/sway/input/cursor.c index 06294b8b..c65548c3 100644 --- a/sway/input/cursor.c +++ b/sway/input/cursor.c | |||
@@ -1227,7 +1227,7 @@ uint32_t get_mouse_bindcode(const char *name, char **error) { | |||
1227 | 1227 | ||
1228 | uint32_t get_mouse_button(const char *name, char **error) { | 1228 | uint32_t get_mouse_button(const char *name, char **error) { |
1229 | uint32_t button = get_mouse_bindsym(name, error); | 1229 | uint32_t button = get_mouse_bindsym(name, error); |
1230 | if (!button && !error) { | 1230 | if (!button && !*error) { |
1231 | button = get_mouse_bindcode(name, error); | 1231 | button = get_mouse_bindcode(name, error); |
1232 | } | 1232 | } |
1233 | return button; | 1233 | return button; |