Move call to fl_utf8_remove_context_dependent() to more appropriate place.
This commit is contained in:
parent
138624fa27
commit
4644521f8c
@ -1834,7 +1834,6 @@ int fl_handle(const XEvent& thisevent)
|
||||
Status status;
|
||||
len = XUtf8LookupString(Fl_X11_Screen_Driver::xim_ic, (XKeyPressedEvent *)&xevent.xkey,
|
||||
kp_buffer, kp_buffer_len, &keysym, &status);
|
||||
len = fl_utf8_remove_context_dependent(kp_buffer, len);
|
||||
|
||||
while (status == XBufferOverflow && kp_buffer_len < 50000) {
|
||||
kp_buffer_len = kp_buffer_len * 5 + 1;
|
||||
@ -1842,6 +1841,7 @@ int fl_handle(const XEvent& thisevent)
|
||||
len = XUtf8LookupString(Fl_X11_Screen_Driver::xim_ic, (XKeyPressedEvent *)&xevent.xkey,
|
||||
kp_buffer, kp_buffer_len, &keysym, &status);
|
||||
}
|
||||
len = fl_utf8_remove_context_dependent(kp_buffer, len);
|
||||
keysym = fl_KeycodeToKeysym(fl_display, keycode, 0);
|
||||
} else {
|
||||
//static XComposeStatus compose;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user