sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 75de31d36e0d7293a9fdaf0be39668c962c031fd
parent fc955716d499f9f5add878c89e4d311736f077d0
Author: Brian Ashworth <bosrsf04@gmail.com>
Date:   Wed, 31 Jul 2019 15:18:54 -0400

libinput: fix set_send_events

This just fixes the check in set_send_events for whether the mode has
changed. LIBINPUT_CONFIG_SEND_EVENTS_ENABLED is 0 so the bitmask check
cannot be fixed, but Sway doesn't allow multiple modes to be set anyway
(not really sure why you would need to) so a basic equality check works

Diffstat:
Msway/input/libinput.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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);