]> git.sur5r.net Git - i3/i3lock/commitdiff
Avoid handle a keysym if the compose state gets cancelled
authorDaniel Otero <otero.o.daniel@gmail.com>
Thu, 12 Feb 2015 10:22:58 +0000 (11:22 +0100)
committerDaniel Otero <otero.o.daniel@gmail.com>
Thu, 12 Feb 2015 10:22:58 +0000 (11:22 +0100)
This is the approach taken by libX11, and feels more consistent.

i3lock.c

index b58297e785d857865d2583e3c9c52afbb177d024..16e791109d2e37676e15fa3080811df620ca1907 100644 (file)
--- 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;
         }
     }