Thank you for having a look at this, and I appreciate your input in the linked issue.
Normally fltk-rs just does some setup code at the start of an application (to initialize boxtypes since boxtype macros can't be wrapped, so this is done in cfltk). Widget instantiation code is passed as is to FLTK, except for labels since Rust doesn't deal with null terminated strings, so a null terminator is added if there is a label. fltk-rs widget methods are mostly thin wrappers, except for some arguments again like null terminated strings. fltk-rs doesn't run any shutdown code. During the build it patches (disables) some FLTK shutdown code on windows since it interferes with Rust's shutdown code.
Regarding widget behavior, there shouldn't be any difference since these remain internal to FLTK.
As for Rust itself, AFAIK it doesn't do anything extra on startup since it has no static initialization or global constructors, vtables and such. It zeroes some registers, aligns the stack, calls a dummy main to get the command line args, then starts its main function which is stored as a function pointer in an executable's stack.
As far as IMEs go, when the issue got posted I made a quick search and found similar issues for wayland: https://bbs.archlinux.org/viewtopic.php?id=284900
https://github.com/microsoft/vscode/issues/168025
https://github.com/alacritty/alacritty/issues/5065
On Monday, April 22, 2024 at 7:59:06 PM UTC+3 Manolo wrote:
The issue discussed involves an Input Method for Chinese text. Is it possible that fltk-rs is somehow unable to accomodate the new player when such an IM is used? Please, pardon this question if it's stupid. I don't know what rust is and how fltk-rs works at all. Such IM opens an auxiliary window that captures the focus from the current FLTK wayland window and later feeds the wayland window with Chinese text and closes the auxiliary window.
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/eabbd235-f51c-40e4-8be1-025eb6af439fn%40googlegroups.com.
[ Direct Link to Message ] |