diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-01-13 20:35:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-01-13 20:35:45 -0500 |
commit | 4eb0767414fe404adf1c0b0be7c719f5ac115684 (patch) | |
tree | 472e620249f29c62e50df28faa36c3223d3d1fe4 /swaymsg | |
parent | 9ce4d53e789b5a3b3f521585a5a0ff62e341468b (diff) | |
parent | 4dba42555f123e68b81d3587c9ea55ecc0d40d84 (diff) |
Merge pull request #3398 from RedSoxFan/toggle-input-events
input events: toggle and ipc get_inputs
Diffstat (limited to 'swaymsg')
-rw-r--r-- | swaymsg/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/swaymsg/main.c b/swaymsg/main.c index f1bb5e3e..e5eee631 100644 --- a/swaymsg/main.c +++ b/swaymsg/main.c @@ -113,7 +113,7 @@ static const char *pretty_type_name(const char *name) { } static void pretty_print_input(json_object *i) { - json_object *id, *name, *type, *product, *vendor, *kbdlayout; + json_object *id, *name, *type, *product, *vendor, *kbdlayout, *events; json_object_object_get_ex(i, "identifier", &id); json_object_object_get_ex(i, "name", &name); json_object_object_get_ex(i, "type", &type); @@ -139,6 +139,10 @@ static void pretty_print_input(json_object *i) { json_object_get_string(kbdlayout)); } + if (json_object_object_get_ex(i, "libinput_send_events", &events)) { + printf(" Libinput Send Events: %s\n", json_object_get_string(events)); + } + printf("\n"); } |