mirror of
https://github.com/fltk/fltk.git
synced 2026-05-22 07:01:34 +08:00
Move call to fl_utf8_remove_context_dependent() to more appropriate place.
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user