From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: =?gb18030?B?u9i4tKO6ILvYuLSjuiC72Li0o7ogu9i4tKO6?= [PATCH] Add IME status change support on windows natively Date: Mon, 13 Apr 2020 10:25:48 +0300 Message-ID: <837dyjkfsz.fsf@gnu.org> References: <83k12kj8b7.fsf@gnu.org> <83d08bkimi.fsf@gnu.org> <83blnvkhrx.fsf@gnu.org> <83a73fkgqt.fsf@gnu.org> <838sizkfzl.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=gb18030 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="45869"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: georgealbert@qq.com Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Apr 13 09:29:00 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jNtWe-000BoS-8A for ged-emacs-devel@m.gmane-mx.org; Mon, 13 Apr 2020 09:29:00 +0200 Original-Received: from localhost ([::1]:41232 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNtWd-0005iK-AP for ged-emacs-devel@m.gmane-mx.org; Mon, 13 Apr 2020 03:28:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37497) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jNtTk-0000r7-4o for emacs-devel@gnu.org; Mon, 13 Apr 2020 03:26:00 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45553) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1jNtTh-0008H4-Ed; Mon, 13 Apr 2020 03:25:57 -0400 Original-Received: from [176.228.60.248] (port=2571 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jNtTg-0007zd-RM; Mon, 13 Apr 2020 03:25:57 -0400 In-Reply-To: <838sizkfzl.fsf@gnu.org> (message from Eli Zaretskii on Mon, 13 Apr 2020 10:21:50 +0300) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:246899 Archived-At: > Date: Mon, 13 Apr 2020 10:21:50 +0300 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org > > So perhaps instead of using w32_system_caret_hwnd, you should use the > return value of GetFocus function, similar to what we do elsewhere in > w32_msg_pump. And if GetFocus returns NULL, skip the processing, like you do if get_ime_context_fn returns NULL.