From 9e48c74be19f7a27b2e01cf744f85b8b313a45b3 Mon Sep 17 00:00:00 2001 From: Daniel Otero Date: Thu, 12 Feb 2015 11:22:58 +0100 Subject: [PATCH] Avoid handle a keysym if the compose state gets cancelled This is the approach taken by libX11, and feels more consistent. --- i3lock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }