From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#66765: 30.0.50; Building emacs with xinput2 breaks receiving XSendEvent events Date: Fri, 27 Oct 2023 15:03:21 +0800 Message-ID: <87wmv8y2bq.fsf@yahoo.com> References: <875y2szyz7.fsf@yahoo.com> <835y2sfvov.fsf@gnu.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="27076"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: ami@fischman.org, 66765@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Oct 27 09:05:22 2023 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 1qwGuH-0006pA-8Q for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Oct 2023 09:05:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qwGtY-0005uv-AN; Fri, 27 Oct 2023 03:04:36 -0400 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 1qwGtW-0005uh-50 for bug-gnu-emacs@gnu.org; Fri, 27 Oct 2023 03:04:34 -0400 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 1qwGtT-00044V-BH for bug-gnu-emacs@gnu.org; Fri, 27 Oct 2023 03:04:31 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qwGty-00054j-5L for bug-gnu-emacs@gnu.org; Fri, 27 Oct 2023 03:05:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Oct 2023 07:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66765 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug wontfix Original-Received: via spool by 66765-submit@debbugs.gnu.org id=B66765.169839025219435 (code B ref 66765); Fri, 27 Oct 2023 07:05:02 +0000 Original-Received: (at 66765) by debbugs.gnu.org; 27 Oct 2023 07:04:12 +0000 Original-Received: from localhost ([127.0.0.1]:34982 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qwGt9-00053O-Vt for submit@debbugs.gnu.org; Fri, 27 Oct 2023 03:04:12 -0400 Original-Received: from sonic306-20.consmr.mail.ne1.yahoo.com ([66.163.189.82]:33960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qwGt5-000537-Da for 66765@debbugs.gnu.org; Fri, 27 Oct 2023 03:04:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1698390210; bh=P43WZW1nWjvEBLIOAYAfnvhWkMkTVju+l34bjZsqvro=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=cdWi16t+M002IMYdUdTJuAygAIsYa88JoDCQhTkVyNwxhGe2mNiHeWU+HldOK8jm4vKSkGgYpvcuxqHZnt2cEddII9yTGQKDHIm8lq2qFnZKPidwTXGsvV89pHqFTuS9Bku6Pu9XrrWfjZQToBFl+9Bz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2WqkICaox7JYPsj9weDbsUo9y2bo117wEtd74A3dQYm0UEqG7Bgwcd.OXUSrdfXhU qy7aI7dNuVkgBG.ExuAWuqEkOFypnwCjpQWTqbGA9B1vsDQnJp1MGQDaEslo3Rb10B9d.aADpdjg jYK4JrDcdkMRjoc9mphUyT7vFCEqdKiJ95uf6jMYl4PC4Jfs2Pe9Uj5yTmS4xPgvnyxHkgLI7PiG Y_dEjGjG1HMQeNlCsvnQjAUlD3oq2NAm1Ex.SqQ4UM5cEXzRgFSi6WoOVYdLPBxMUmRipOL3oAGV rgsqgbn17stjgkiyOsvJZEmn1rZKwbBZN44d8i.X0oNRZl9hQlvQzayDwgZlYBNj6dKHv2v8X5Xg Cy2IRoTB5LqOhkrsotAo9BxyOiEjYsd0oNbLD.Y50ik6juAqyhKERRm_WEjUuQJW5jQhez4DyZv7 GehpjBXV94ABnnwrMHqLBYdj1i8Yetb5jV2e7TsVp8 X-Sonic-MF: X-Sonic-ID: 43bf6b03-c734-4b6c-9ee8-88e27c257862 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.ne1.yahoo.com with HTTP; Fri, 27 Oct 2023 07:03:30 +0000 Original-Received: by hermes--production-sg3-8696d769c6-gk9xn (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 6b60ef3a9190fc75f97caa7577225945; Fri, 27 Oct 2023 07:03:26 +0000 (UTC) In-Reply-To: <835y2sfvov.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 27 Oct 2023 09:04:00 +0300") X-Mailer: WebService/1.1.21797 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo 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:273342 Archived-At: Eli Zaretskii writes: > Can you please add something to etc/PROBLEMS about this issue? > > How widely is this mechanism used in the wild? If it is used widely > enough, perhaps we should tell people not to build with XInput2 if > they have vested interests in those methods? XSendEvent is seldom used to send input events these days, for this and many other reasons, and teaching X programming is outside the purview of PROBLEMS. Properly written programs either insert events into the server by means of the XTEST extension, or through OS interfaces that precede the X server in the input event delivery process. One such reason is that it's not possible for an X client to reliably establish the window an event should be delivered to without grabbing the server and reading every event mask in between the root window and the window beneath the mouse pointer, which is slow, requires a server grab, and tedious. > Also, maybe submitting bug reports to the respective developers would > cause them to improve the situation? Oh no, this is a studious design choice, and one I agree with; it's not possible to transform core events into input extension ones, because too much information is absent from the former.