Browse Source

Update the key symbol if the composing ends.

master
Daniel Otero 10 years ago
parent
commit
86323f6e04
  1. 2
      i3lock.c

2
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 /* 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. */ * 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; 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; composed = true;
break; break;
case XKB_COMPOSE_CANCELLED: case XKB_COMPOSE_CANCELLED:

Loading…
Cancel
Save