summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorQuentin Glidic <sardemff7+git@sardemff7.net>2016-02-21 17:00:28 +0100
committerQuentin Glidic <sardemff7+git@sardemff7.net>2016-02-21 17:00:28 +0100
commitee52e50662dedac8397b22ce9e173caf74cdd5d9 (patch)
tree0172af2b89331c1bb0fc9d7cea01b238d97d09cf /source
parente4a48f8dfb0c01c360f19f4df0be9200d791e0e2 (diff)
view/compose: Use Xlib cancelling behaviour
Signed-off-by: Quentin Glidic <sardemff7+git@sardemff7.net>
Diffstat (limited to 'source')
-rw-r--r--source/view.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source/view.c b/source/view.c
index 13f5a6e9..1b96c14e 100644
--- a/source/view.c
+++ b/source/view.c
@@ -1314,17 +1314,16 @@ static void rofi_view_mainloop_iter ( RofiViewState *state, xcb_generic_event_t
if ( ( key != XKB_KEY_NoSymbol ) && ( xkb_compose_state_feed ( xkb->compose.state, key ) == XKB_COMPOSE_FEED_ACCEPTED ) ) {
switch ( xkb_compose_state_get_status ( xkb->compose.state ) )
{
+ case XKB_COMPOSE_CANCELLED:
+ /* Eat the keysym that cancelled the compose sequence.
+ * This is default behaviour with Xlib */
case XKB_COMPOSE_COMPOSING:
- g_debug ( "[COMPOSE] composing" );
key = XKB_KEY_NoSymbol;
break;
case XKB_COMPOSE_COMPOSED:
- g_debug ( "[COMPOSE] composed" );
key = xkb_compose_state_get_one_sym ( xkb->compose.state );
len = xkb_compose_state_get_utf8 ( xkb->compose.state, pad, sizeof ( pad ) );
break;
- case XKB_COMPOSE_CANCELLED:
- g_debug ( "[COMPOSE] cancelled" );
case XKB_COMPOSE_NOTHING:
break;
}