mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 07:51:28 +00:00
Remain compat with libinput < 1.7.0
This commit is contained in:
parent
b3541d9dc5
commit
b463fb8adc
|
@ -44,6 +44,7 @@ Install dependencies:
|
|||
* [wlc](https://github.com/Cloudef/wlc)
|
||||
* wayland
|
||||
* xwayland
|
||||
* libinput >= 1.6.0
|
||||
* libcap
|
||||
* asciidoc
|
||||
* pcre
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue