aboutsummaryrefslogtreecommitdiffstats
path: root/sway/ipc-json.c
diff options
context:
space:
mode:
authorLibravatar Jerzi Kaminsky <JerziKaminsky@users.noreply.github.com>2017-04-12 20:13:22 +0300
committerLibravatar Jerzi Kaminsky <JerziKaminsky@users.noreply.github.com>2017-04-14 02:30:41 +0300
commitb463fb8adc18f128d5af46096d002f7f6d6c9dfe (patch)
tree53d2262f49119509b2638a4dea90f672cffb60b3 /sway/ipc-json.c
parentImplement more thourough nvidia config check (diff)
downloadsway-b463fb8adc18f128d5af46096d002f7f6d6c9dfe.tar.gz
sway-b463fb8adc18f128d5af46096d002f7f6d6c9dfe.tar.zst
sway-b463fb8adc18f128d5af46096d002f7f6d6c9dfe.zip
Remain compat with libinput < 1.7.0
Diffstat (limited to 'sway/ipc-json.c')
-rw-r--r--sway/ipc-json.c4
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) {
284 { LIBINPUT_DEVICE_CAP_TABLET_TOOL, "tablet_tool", NULL }, 284 { LIBINPUT_DEVICE_CAP_TABLET_TOOL, "tablet_tool", NULL },
285 { LIBINPUT_DEVICE_CAP_TABLET_PAD, "tablet_pad", NULL }, 285 { LIBINPUT_DEVICE_CAP_TABLET_PAD, "tablet_pad", NULL },
286 { LIBINPUT_DEVICE_CAP_GESTURE, "gesture", NULL }, 286 { LIBINPUT_DEVICE_CAP_GESTURE, "gesture", NULL },
287 { LIBINPUT_DEVICE_CAP_SWITCH, "switch", NULL } 287#ifdef LIBINPUT_DEVICE_CAP_SWITCH // libinput 1.7.0+
288 { LIBINPUT_DEVICE_CAP_SWITCH, "switch", NULL },
289#endif
288 }; 290 };
289 291
290 json_object *_caps = json_object_new_array(); 292 json_object *_caps = json_object_new_array();