From c2e25dc0c1ace919ee1373d99c5883b873768d1e Mon Sep 17 00:00:00 2001 From: Qball Cow Date: Tue, 25 Feb 2014 22:54:44 +0100 Subject: [PATCH] Use Xutf8LookupString --- source/textbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/textbox.c b/source/textbox.c index e2011820..17f29772 100644 --- a/source/textbox.c +++ b/source/textbox.c @@ -373,7 +373,7 @@ int textbox_keypress( textbox *tb, XEvent *ev ) if ( !( tb->flags & TB_EDITABLE ) ) return 0; - len = XmbLookupString( tb->xic, &ev->xkey, pad, sizeof( pad ), &key, &stat ); + len = Xutf8LookupString( tb->xic, &ev->xkey, pad, sizeof( pad ), &key, &stat ); pad[len] = 0; if ( key == XK_Left ) {