aboutsummaryrefslogtreecommitdiffstats
path: root/swaybar/ipc.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2019-01-13 20:41:05 -0500
committerLibravatar GitHub <noreply@github.com>2019-01-13 20:41:05 -0500
commit81bb6752748436788418c2fa3e7bef775c42c262 (patch)
treef90b770d160cf5ca773a3d63d52311f7ba731b16 /swaybar/ipc.c
parentMerge pull request #3343 from RedSoxFan/seat-cursor-buttons-improved (diff)
parentbar_cmd_bind: utilize mouse button helpers (diff)
downloadsway-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.c2
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(