From 2860b6f48bbd5ac188dc2cfffecf8bd6474f790b Mon Sep 17 00:00:00 2001 From: Mahesh Asolkar Date: Fri, 30 Aug 2024 17:14:46 -0700 Subject: [PATCH] Put toggle touch behind ifdef --- dwl.c | 4 ++++ 1 file changed, 4 insertions(+) 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) {