FLTK logo

[fltk.general] Re: Unicode input problem under wayland

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.general  ]
 
Previous Message ]New Message | Reply ]Next Message ]

Re: Unicode input problem under wayland Mo_Al_ 14:21 Apr 22  
  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:
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.

--
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 ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.