mirror of
https://github.com/swaywm/sway.git
synced 2024-11-24 08:51:27 +00:00
Add modifiers array to event_json
This commit is contained in:
parent
679c058fac
commit
6e95bd5184
|
@ -278,6 +278,14 @@ enum hotspot_event_handling i3bar_block_send_click(struct status_line *status,
|
||||||
|
|
||||||
json_object_object_add(event_json, "button",
|
json_object_object_add(event_json, "button",
|
||||||
json_object_new_int(event_to_x11_button(button)));
|
json_object_new_int(event_to_x11_button(button)));
|
||||||
|
|
||||||
|
struct json_object *modifiers = json_object_new_array();
|
||||||
|
// char mods[16][16];
|
||||||
|
// int len = get_modifier_names(mods, button);
|
||||||
|
// while (len--)
|
||||||
|
// json_object_array_add(modifiers, json_object_new_string(mods[len]));
|
||||||
|
|
||||||
|
json_object_object_add(event_json, "modifiers", modifiers);
|
||||||
json_object_object_add(event_json, "event", json_object_new_int(button));
|
json_object_object_add(event_json, "event", json_object_new_int(button));
|
||||||
json_object_object_add(event_json, "x", json_object_new_int(x));
|
json_object_object_add(event_json, "x", json_object_new_int(x));
|
||||||
json_object_object_add(event_json, "y", json_object_new_int(y));
|
json_object_object_add(event_json, "y", json_object_new_int(y));
|
||||||
|
|
Loading…
Reference in a new issue