From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#74590: 31.0.50 [scratch/igc branch]; key input sometimes skip fcitx input method preedit box Date: Mon, 02 Dec 2024 18:51:26 +0200 Message-ID: <86plma2fld.fsf@gnu.org> References: <87iks5xayc.fsf@gmail.com> <878qsykq4i.fsf@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27988"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, yikai@z1k.dev, eller.helmut@gmail.com, 74590@debbugs.gnu.org To: Pip Cet , Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 02 17:52:22 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1tI9en-000770-HC for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 02 Dec 2024 17:52:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tI9eY-0002DG-OS; Mon, 02 Dec 2024 11:52:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tI9eV-0002Cm-8D for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2024 11:52:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tI9eU-0006oF-Vl for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2024 11:52:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-version:References:In-Reply-To:From:Date:To:Subject; bh=y2o62IaxqlkJ+XoWsR+DFkxr9iGYFgrz7dnAz5NBM7g=; b=M0mKmDc/Pfw4Zg6XDCYmptF54Eyy00/okxKpNWNE1z95SUpCZm4/7n1mscL4YjUMndTo3i7NAJ0oDGAt6yvVRX7Nv9bZ0GVN0NxfKwfQMeh3Hsh3cjB/Zwqb2gE+hagqYAeTXTyysBe34+KBvFBLYcA13Od62j8rCzPBsYT502IXcFMkO85wfkSiLPg50lmSNJIFXdPHuLgyy4uxuUu5cDs46MeXesgzPS6XL0GbuoaUUQ/9o8+K7XsBV/VeJDXhfHCft1u5HAVEMuJ09pFMIkc1TFvY1pO2uOSsxWd6wtJEb+ejXFi/kad4DET7F/qc2C0PaRSVh4Lus04GmOqIvQ==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tI9eU-0002wJ-Oq for bug-gnu-emacs@gnu.org; Mon, 02 Dec 2024 11:52:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 02 Dec 2024 16:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74590 X-GNU-PR-Package: emacs Original-Received: via spool by 74590-submit@debbugs.gnu.org id=B74590.173315830111255 (code B ref 74590); Mon, 02 Dec 2024 16:52:02 +0000 Original-Received: (at 74590) by debbugs.gnu.org; 2 Dec 2024 16:51:41 +0000 Original-Received: from localhost ([127.0.0.1]:56328 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tI9e8-0002vT-Vx for submit@debbugs.gnu.org; Mon, 02 Dec 2024 11:51:41 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37770) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tI9e6-0002v5-GR for 74590@debbugs.gnu.org; Mon, 02 Dec 2024 11:51:39 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tI9dz-0006hK-08; Mon, 02 Dec 2024 11:51:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=y2o62IaxqlkJ+XoWsR+DFkxr9iGYFgrz7dnAz5NBM7g=; b=Mj/IATySQKRAYbZ2UjKL eRGj34grBRwRku9F0nKur9rXTMbfVnL3569/yIf3Vjo8Ky2ijBWkNQJPeWlY1HLE9ZS3I70bw/wWY 2pNdJiIJeEfgDqBsNKZWjMMytN9ZvdwE3f8QDtRLefV8awJo6ghlpc2rW3E85hxXniWZAH6lliJnU kkTnUWuFzMSwOouQujSeS3pc9/SV9yhFGE3U7AUOjMnbxZcFYALQI6nC7iE+JU1z21JRgFYafQUfs xaKFvldvUs/OFmz0VxalfRdb582wfK/iaR943a8UQLzKhfXpasEVVQTdoNxmAgS//7gTtqxsWimSF 9jkO4bPVF1c5cw==; In-Reply-To: <878qsykq4i.fsf@protonmail.com> (bug-gnu-emacs@gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:296339 Archived-At: > Cc: Gerd Möllmann , > Helmut Eller , 74590@debbugs.gnu.org > Date: Mon, 02 Dec 2024 16:26:50 +0000 > From: Pip Cet via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > "Yikai Zhao" writes: > > > I have reproduced the issue with your patch, here's the relevant log: > > Thank you! So it seems we call XFilterEvent correctly but it incorrectly > indicates that the keypress (event 2) should be handled by Emacs rather > than the input method. That's rather puzzling, particularly since > subsequent calls to XFilterEvent return 1, indicating that the key > release is handled by the input method. > > I'm pretty much stumped at this point. It might be a timing difference > between the MPS and non-MPS builds, but I think it's more likely to be > a bug in our MPS code. > > > Please let me know if there's any other info I can provide. > > Well, you already tried setting x-gtk-use-native-input to t :-) > > One thing you could try is to run a full x11trace of the Emacs session > and see whether anything unusual is in there. But that's not guaranteed > to yield any results. Maybe Po Lu (CC'ed) could have some additional ideas or comments.