aboutsummaryrefslogtreecommitdiff
path: root/sway/input/libinput.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input/libinput.c')
-rw-r--r--sway/input/libinput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/input/libinput.c b/sway/input/libinput.c
index d8847a23..ef51e998 100644
--- a/sway/input/libinput.c
+++ b/sway/input/libinput.c
@@ -15,7 +15,7 @@ static void log_status(enum libinput_config_status status) {
}
static bool set_send_events(struct libinput_device *device, uint32_t mode) {
- if ((libinput_device_config_send_events_get_mode(device) & mode) == 0) {
+ if (libinput_device_config_send_events_get_mode(device) == mode) {
return false;
}
sway_log(SWAY_DEBUG, "send_events_set_mode(%d)", mode);