summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Otero <otero.o.daniel@gmail.com>2015-02-12 11:22:58 +0100
committerDaniel Otero <otero.o.daniel@gmail.com>2015-02-12 11:22:58 +0100
commit9e48c74be19f7a27b2e01cf744f85b8b313a45b3 (patch)
treecf0f88c372a5872b442b00ca8dfad7b2944cff9c
parent562e824246b9e81e65644660714db404035e693a (diff)
Avoid handle a keysym if the compose state gets cancelled
This is the approach taken by libX11, and feels more consistent.
-rw-r--r--i3lock.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}