From bbf63bf92c3d0003e883bfd385feb24788ff38b6 Mon Sep 17 00:00:00 2001 From: Daniel Stone Date: Mon, 4 Jun 2012 11:40:48 +0100 Subject: [PATCH] Fix inverted LEDs Turns out it's probably better to post the new state rather than the old. Signed-off-by: Daniel Stone --- src/compositor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor.c b/src/compositor.c index 1383966..b904861 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -1793,7 +1793,7 @@ update_modifier_state(struct weston_seat *seat, uint32_t key, uint32_t state) seat->xkb_info.scroll_led)) leds |= LED_SCROLL_LOCK; if (leds != seat->xkb_state.leds && seat->led_update) - seat->led_update(seat, seat->xkb_state.leds); + seat->led_update(seat, leds); seat->xkb_state.leds = leds; return ret; -- 2.7.4