[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#74590: 31.0.50 [scratch/igc branch]; key input sometimes skip fcitx
From: |
Gerd Möllmann |
Subject: |
bug#74590: 31.0.50 [scratch/igc branch]; key input sometimes skip fcitx input method preedit box |
Date: |
Sun, 01 Dec 2024 12:30:49 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Pip Cet <pipcet@protonmail.com> writes:
> Gerd Möllmann <gerd.moellmann@gmail.com> writes:
>
>> It probably isn't relevant because of this
>>
>> #ifdef HAVE_MPS
>> void free_glib_user_data (gpointer data, GClosure *closure)
>> {
>> igc_xfree (data);
>> }
>> #else
>> void free_glib_user_data (gpointer data, GClosure *closure)
>> {
>> return;
>> }
>> #endif
>>
>> Don't know where the allocation takes place.
>
> It's this code in gtkutil.h:
>
> #ifdef HAVE_MPS
> INLINE gpointer
> glib_user_data (void *o)
> {
> gpointer p = igc_xzalloc_ambig (sizeof (o));
> memcpy (p, &o, sizeof (o));
> return p;
> }
>
> INLINE void *
> get_glib_user_data (gpointer p)
> {
> return *(void **)p;
> }
> #else
> INLINE gpointer
> glib_user_data (void *o)
> {
> return (gpointer)o;
> }
>
> INLINE void *
> get_glib_user_data (gpointer p)
> {
> return (void *)p;
> }
> #endif
>
> Does that look correct to you?
Yes, kt does.