Exclude none (zero) from the bitmask test , otherwise
the bitmask test is always true when click method is
configured to 'none' and as a result the configuration
will be skipped.
wlr_log(WLR_INFO, "dwt configured");
libinput_device_config_dwt_set_enabled(libinput_dev, dc->dwt);
}
- if ((libinput_device_config_click_get_methods(libinput_dev)
- & dc->click_method) == 0
+
+ if ((dc->click_method != LIBINPUT_CONFIG_CLICK_METHOD_NONE
+ && (libinput_device_config_click_get_methods(libinput_dev)
+ & dc->click_method) == 0)
|| dc->click_method < 0) {
wlr_log(WLR_INFO, "click method not configured");
} else {