diff --git a/dwl.c b/dwl.c index 5c51b43..78740df 100644 --- a/dwl.c +++ b/dwl.c @@ -359,7 +359,9 @@ static void startdrag(struct wl_listener *listener, void *data); static void tag(const Arg *arg); static void tagmon(const Arg *arg); static void tile(Monitor *m); +#ifdef HAS_TOGGLE_TOUCH static void toggle_touch_input_device(const Arg *arg); +#endif static void togglebar(const Arg *arg); static void togglefloating(const Arg *arg); static void togglefullscreen(const Arg *arg); @@ -2978,6 +2980,7 @@ tile(Monitor *m) } } +#ifdef HAS_TOGGLE_TOUCH void toggle_touch_input_device(const Arg *arg) { if (cfg_disable_touchpad) { @@ -2993,6 +2996,7 @@ toggle_touch_input_device(const Arg *arg) { libinput_device_get_id_vendor(touch_input_device), libinput_device_get_id_product(touch_input_device)); } +#endif void togglebar(const Arg *arg) {