From: Daniel Otero Date: Thu, 12 Feb 2015 20:38:37 +0000 (+0100) Subject: Update the key symbol if the composing ends. X-Git-Tag: 2.7~11^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=refs%2Fpull%2F6%2Fhead;p=i3%2Fi3lock Update the key symbol if the composing ends. --- diff --git a/i3lock.c b/i3lock.c index 16e7911..7f8218e 100644 --- a/i3lock.c +++ b/i3lock.c @@ -334,7 +334,7 @@ static void handle_key_press(xcb_key_press_event_t *event) { /* xkb_compose_state_get_utf8 doesn't include the terminating byte in the return value * as xkb_keysym_to_utf8 does. Adding one makes the variable n consistent. */ n = xkb_compose_state_get_utf8(xkb_compose_state, buffer, sizeof(buffer)) + 1; - //ksym = xkb_compose_state_get_one_sym(xkb_compose_state); // Not sure if it's needed + ksym = xkb_compose_state_get_one_sym(xkb_compose_state); composed = true; break; case XKB_COMPOSE_CANCELLED: