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:
On Monday, April 22, 2024 at 7:59:06 PM UTC+3 Manolo wrote:
Le dimanche 21 avril 2024 à 03:32:43 UTC+2, may64...@gmail.com a écrit :
Hello
I would appreciate insight regarding the following issue, which was reported at fltk-rs, but I think the issue lies in the IME support under wayland: https://github.com/fltk-rs/fltk-rs/issues/1539
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.
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.