Move call to fl_utf8_remove_context_dependent() to more appropriate place.
Build and Test / build-linux (push) Has been cancelled
Build and Test / build-wayland (push) Has been cancelled
Build and Test / build-macos (push) Has been cancelled
Build and Test / build-windows (push) Has been cancelled

This commit is contained in:
ManoloFLTK
2026-01-20 11:41:45 +01:00
parent 138624fa27
commit 4644521f8c
+1 -1
View File
@@ -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;