diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-04-14 10:44:30 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-14 10:44:30 -0400 |
commit | 4b3e533a5946c0cb8f3f80421918ff809e4059a3 (patch) | |
tree | 28d91462686a2d97b5f83ea0c80ce5873ab909af /sway/ipc-json.c | |
parent | a25a2f40ce207ea39cf693fe5ee12c621ae06ae7 (diff) | |
parent | 6079e6f7e5818f7789ffbc4b50ed541a864a84bd (diff) |
Merge pull request #1171 from JerziKaminsky/misc_fixes
Misc fixes
Diffstat (limited to 'sway/ipc-json.c')
-rw-r--r-- | sway/ipc-json.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/ipc-json.c b/sway/ipc-json.c index fba489d7..4c4484e8 100644 --- a/sway/ipc-json.c +++ b/sway/ipc-json.c @@ -284,7 +284,9 @@ json_object *ipc_json_describe_input(struct libinput_device *device) { { LIBINPUT_DEVICE_CAP_TABLET_TOOL, "tablet_tool", NULL }, { LIBINPUT_DEVICE_CAP_TABLET_PAD, "tablet_pad", NULL }, { LIBINPUT_DEVICE_CAP_GESTURE, "gesture", NULL }, - { LIBINPUT_DEVICE_CAP_SWITCH, "switch", NULL } +#ifdef LIBINPUT_DEVICE_CAP_SWITCH // libinput 1.7.0+ + { LIBINPUT_DEVICE_CAP_SWITCH, "switch", NULL }, +#endif }; json_object *_caps = json_object_new_array(); |