Commit c0046e2b authored by Peter Hutterer's avatar Peter Hutterer

Fix bitmask handling when changing LEDs

Signed-off-by: Peter Hutterer's avatarPeter Hutterer <>
parent bee8989c
......@@ -228,7 +228,8 @@ xf86libinput_kbd_ctrl(DeviceIntPtr device, KeybdCtrl *ctrl)
struct libinput_device *ldevice = driver_data->device;
while (bits[i].xbit) {
leds |= !!(ctrl->leds & bits[i].xbit);
if (ctrl->leds & bits[i].xbit)
leds |= bits[i].code;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment