emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add IME status change support on windows natively


From: Eli Zaretskii
Subject: Re: [PATCH] Add IME status change support on windows natively
Date: Mon, 13 Apr 2020 12:33:05 +0300

> From: "Albert" <address@hidden>
> Cc: "emacs-devel" <address@hidden>
> Date: Mon, 13 Apr 2020 17:22:35 +0800
> 
> I modifed the code following your instruction.  I added some more comments on 
> functions. Test is done, IME
> status changes as expected.
> 
> I used GetFocus() in w32_msg_pump() now.

Thanks.

> But I can't invoke GetFocus() in w32-get-ime-open-status(), because 
> w32-get-ime-open-status() is invoked
> in lisp thread. I just use w32_system_caret_hwnd instead, if 
> get_ime_context_fn(w32-get-ime-open-status)
> returns NULL, w32-get-ime-open-status() return nil.

Do we actually need w32-get-ime-open-status?  Maybe we should simply
delete that function?  When will it be useful?

If we do need to use it, does it work to use this to find a suitable
window handle:

  HWND current_window = FRAME_W32_WINDOW (SELECTED_FRAME ());

> Attachement is the modifed patch.

Thanks.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]