aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {
15} 15}
16 16
17static bool set_send_events(struct libinput_device *device, uint32_t mode) { 17static bool set_send_events(struct libinput_device *device, uint32_t mode) {
18 if ((libinput_device_config_send_events_get_mode(device) & mode) == 0) { 18 if (libinput_device_config_send_events_get_mode(device) == mode) {
19 return false; 19 return false;
20 } 20 }
21 sway_log(SWAY_DEBUG, "send_events_set_mode(%d)", mode); 21 sway_log(SWAY_DEBUG, "send_events_set_mode(%d)", mode);