diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-01-13 20:41:05 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-13 20:41:05 -0500 |
commit | 81bb6752748436788418c2fa3e7bef775c42c262 (patch) | |
tree | f90b770d160cf5ca773a3d63d52311f7ba731b16 /swaybar/ipc.c | |
parent | Merge pull request #3343 from RedSoxFan/seat-cursor-buttons-improved (diff) | |
parent | bar_cmd_bind: utilize mouse button helpers (diff) | |
download | sway-81bb6752748436788418c2fa3e7bef775c42c262.tar.gz sway-81bb6752748436788418c2fa3e7bef775c42c262.tar.zst sway-81bb6752748436788418c2fa3e7bef775c42c262.zip |
Merge pull request #3344 from RedSoxFan/bar-mouse-bindings-improved
Improve mouse button parsing: bar mouse bindings
Diffstat (limited to 'swaybar/ipc.c')
-rw-r--r-- | swaybar/ipc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/swaybar/ipc.c b/swaybar/ipc.c index bc5c28b4..097f9161 100644 --- a/swaybar/ipc.c +++ b/swaybar/ipc.c | |||
@@ -246,7 +246,7 @@ static bool ipc_parse_config( | |||
246 | struct swaybar_binding *binding = | 246 | struct swaybar_binding *binding = |
247 | calloc(1, sizeof(struct swaybar_binding)); | 247 | calloc(1, sizeof(struct swaybar_binding)); |
248 | binding->button = json_object_get_int( | 248 | binding->button = json_object_get_int( |
249 | json_object_object_get(bindobj, "input_code")); | 249 | json_object_object_get(bindobj, "event_code")); |
250 | binding->command = strdup(json_object_get_string( | 250 | binding->command = strdup(json_object_get_string( |
251 | json_object_object_get(bindobj, "command"))); | 251 | json_object_object_get(bindobj, "command"))); |
252 | binding->release = json_object_get_boolean( | 252 | binding->release = json_object_get_boolean( |