From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Cecilio Pardo Newsgroups: gmane.emacs.bugs Subject: bug#74423: Low level key events Date: Sat, 14 Dec 2024 10:26:23 +0100 Message-ID: References: <31bdc55d-8c13-4de0-9cef-bd6cc4fb033f@imayhem.com> <705fabb8-1ea0-4894-8c32-05097ab822c9@imayhem.com> <868qsvz07i.fsf@gnu.org> <162dada7-ad54-4ca5-8f11-d55dd6dccb3c@imayhem.com> <867c8ezny3.fsf@gnu.org> <87ldwjqd1e.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33279"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 74423@debbugs.gnu.org, Eli Zaretskii , monnier@iro.umontreal.ca To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Dec 14 10:27:12 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 1tMOQa-0008Q2-Ln for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 14 Dec 2024 10:27:12 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMOQS-00084v-Sl; Sat, 14 Dec 2024 04:27:06 -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 1tMOQQ-00084h-QF for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2024 04:27: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 1tMOQQ-0005g0-GT for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2024 04:27:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=In-Reply-To:From:References:MIME-Version:Date:To:Subject; bh=56xuFc1+wn6kq13jZnp2Nl+Fvn5Z6kOpcjDFe1s7Tz8=; b=YS5GPB46v6QobkRilFdo3DawTcS5FTbcBy4kfwVgBjisy0OuB7HL4jl96lcf43XcgY5We4mtRyy445GCb0pCZEPBiM/zqy6ZzNzkArAwrVFYXW4/b/IimtwL1l2NTJ9JrQ3V5cs3FF3MLKdkv4FaCAXcoT75GNK9/LvqeQMRsS0fr5Ru9Obk09ILioIQtm/U+6TvA89cnpzYW6Ck3K5OWhVv2iRXgNr8oIUEImT7YFxjKwNm7T6UrWG1T6JXi+yUV2ppIfUfwpFilk7Wi2O0w8EHErxZsOywiMIQF8a5T5mClduHi5nW0aq022UC2wvl4jsO8zMWpO0twZYvhvNxUA==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tMOQQ-0006EZ-9s for bug-gnu-emacs@gnu.org; Sat, 14 Dec 2024 04:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Cecilio Pardo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 14 Dec 2024 09:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74423 X-GNU-PR-Package: emacs Original-Received: via spool by 74423-submit@debbugs.gnu.org id=B74423.173416839323924 (code B ref 74423); Sat, 14 Dec 2024 09:27:02 +0000 Original-Received: (at 74423) by debbugs.gnu.org; 14 Dec 2024 09:26:33 +0000 Original-Received: from localhost ([127.0.0.1]:45424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMOPw-0006Do-VA for submit@debbugs.gnu.org; Sat, 14 Dec 2024 04:26:33 -0500 Original-Received: from mail.imayhem.com ([82.223.54.191]:49977 helo=zealous-pike.82-223-54-191.plesk.page) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tMOPu-0006DV-Bx for 74423@debbugs.gnu.org; Sat, 14 Dec 2024 04:26:31 -0500 Original-Received: from [192.168.68.102] (111.red-88-21-7.staticip.rima-tde.net [88.21.7.111]) by zealous-pike.82-223-54-191.plesk.page (Postfix) with ESMTPSA id 2F30D80184; Sat, 14 Dec 2024 09:26:24 +0000 (UTC) Authentication-Results: zealous-pike.82-223-54-191.plesk.page; spf=pass (sender IP is 88.21.7.111) smtp.mailfrom=cpardo@imayhem.com smtp.helo=[192.168.68.102] Received-SPF: pass (zealous-pike.82-223-54-191.plesk.page: connection is authenticated) Content-Language: es-ES In-Reply-To: <87ldwjqd1e.fsf@yahoo.com> 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:297015 Archived-At: On 14/12/2024 2:16, Po Lu wrote: > Cecilio Pardo writes: > >> +#ifndef HAVE_XINPUT2 >> +static void >> +xg_maybe_send_low_level_key_event (struct frame *f, >> + GdkEvent *xev) >> +{ >> + GdkEventKey xkey = xev->key; > Why is this !HAVE_XINPUT2? GTK input method support exists > independently of XInput 2. When XInput 2 is active, we get the event through it (XI_KeyPress) first. That gives the information we need. The GTK code is used when there is no XInput and use_native_input is active.