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#68796: xterm.c: Convert mouse-4/5/6/7 to wheel-up/down/left/right Date: Sat, 10 Feb 2024 10:24:32 +0200 Message-ID: <86cyt4vi9r.fsf@gnu.org> References: <871q9zh972.fsf@yahoo.com> <87r0hzfpd5.fsf@yahoo.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8221"; mail-complaints-to="usenet@ciao.gmane.io" Cc: monnier@iro.umontreal.ca, 68796@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 10 09:56:58 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 1rYjAQ-0001uR-Bz for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Feb 2024 09:56:58 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rYj9P-0001RD-Me; Sat, 10 Feb 2024 03:55:55 -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 1rYj9J-0001Gz-Oj for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2024 03:55:50 -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 1rYj9H-00036A-Nt for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2024 03:55:48 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rYj9X-0007uQ-4o for bug-gnu-emacs@gnu.org; Sat, 10 Feb 2024 03:56:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Feb 2024 08:56:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68796 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 68796-submit@debbugs.gnu.org id=B68796.170755532230287 (code B ref 68796); Sat, 10 Feb 2024 08:56:03 +0000 Original-Received: (at 68796) by debbugs.gnu.org; 10 Feb 2024 08:55:22 +0000 Original-Received: from localhost ([127.0.0.1]:53639 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYj8r-0007sK-KW for submit@debbugs.gnu.org; Sat, 10 Feb 2024 03:55:21 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57084) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rYj7h-0007mm-3y for 68796@debbugs.gnu.org; Sat, 10 Feb 2024 03:54:09 -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 1rYif4-0006Cz-TZ; Sat, 10 Feb 2024 03:24:34 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=pBpYAwAlSPEGRm4j9NhnVtNoi2o2recHUnDxNJfbuhg=; b=lQQRnstZafWs m8AYIqVQHZAteph3HaatMcY8KNmaa1S0rXwigTRDtU2OeHgB/iK/9p+5sOoE9Wl+EL/IuAs7h0qKc ShX08EUepqGL0oFbk4Njk+DUw2H0vxOXKFqi9XlOFy6tREMWHix3w4wOMB1K+FIXP9+HBeEWixZo1 righz4UwgJ+jxk3z0D2IVqOh1nVALDmQuRRQ59U6LSfZKNeD1bFTf0Ff7QzBkyxH8LGnP+JqPQnVc r3uj/Qj35XPg3JyKaUOzVlQhOQS4yyJr38FRQXOCQ4pHcS33vbgoryZQXmeVNVHu0nOh6rELCn89I 4ogCRkkiysDnBwyfyGHSeQ==; In-Reply-To: <87r0hzfpd5.fsf@yahoo.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:279734 Archived-At: Ping! Can we make some progress here? > Cc: 68796@debbugs.gnu.org > Date: Tue, 30 Jan 2024 11:53:58 +0800 > From: Po Lu via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > Stefan Monnier writes: > > > Hmm... so IIUC you're saying that even when `dpyinfo->supports_xi2` is > > true, we may receive `mouse-4/5/6/7` events for wheel motions? > > Yuck! > > Yes, and as always other clients may send whatever they want, although > Emacs is not obliged to handle those events correctly. > > >> The correct test of event type is whether x_construct_mouse_click is > >> being called from the XI_ButtonPress or XI_ButtonRelease label in > >> handle_one_xevent. > > > > OK, that sounds fixable. See additional patch below. > > Thanks. I'm short on time at the moment, but will get around to this. > > > >