From: Daniel Otero Date: Thu, 12 Feb 2015 10:22:58 +0000 (+0100) Subject: Avoid handle a keysym if the compose state gets cancelled X-Git-Tag: 2.7~11^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9e48c74be19f7a27b2e01cf744f85b8b313a45b3;p=i3%2Fi3lock Avoid handle a keysym if the compose state gets cancelled This is the approach taken by libX11, and feels more consistent. --- diff --git a/i3lock.c b/i3lock.c index b58297e..16e7911 100644 --- a/i3lock.c +++ b/i3lock.c @@ -339,7 +339,7 @@ static void handle_key_press(xcb_key_press_event_t *event) { break; case XKB_COMPOSE_CANCELLED: xkb_compose_state_reset(xkb_compose_state); - break; + return; } }