aboutsummaryrefslogtreecommitdiff
path: root/sway/input
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-01-13 20:40:00 -0500
committerGitHub <noreply@github.com>2019-01-13 20:40:00 -0500
commitdb1631b67dd463f6516275ac4387712e39f9a384 (patch)
tree4dfb666777353f2d6bc77ec24d1a1b2b808925e0 /sway/input
parent23ab56bbf746e7aa4a940caa343d447a969fa37e (diff)
parent4e6bd53abf900020bbc38ceddb7b7505be4fb96d (diff)
Merge pull request #3342 from RedSoxFan/scroll-buttons-improved
Improve mouse button parsing: input scroll_button
Diffstat (limited to 'sway/input')
-rw-r--r--sway/input/cursor.c2
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) {
uint32_t get_mouse_button(const char *name, char **error) {
uint32_t button = get_mouse_bindsym(name, error);
- if (!button && !error) {
+ if (!button && !*error) {
button = get_mouse_bindcode(name, error);
}
return button;