Put toggle touch behind ifdef

This commit is contained in:
Mahesh Asolkar 2024-08-30 17:14:46 -07:00
parent f9aafbd339
commit 2860b6f48b

4
dwl.c
View File

@ -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) {