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#6372: 24.0.50; C-mouse-1 activates region Date: Fri, 16 Aug 2024 03:18:42 +0200 Message-ID: <2267ebe5-2b20-491d-acea-67ab28ca1471@imayhem.com> References: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------0z3qr0QG0JWxXsyk0dJoHO74" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3959"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird To: 6372@debbugs.gnu.org. Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Aug 16 03:19:54 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 1seldA-0000tD-2i for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 16 Aug 2024 03:19:52 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1selcl-0005WR-NL; Thu, 15 Aug 2024 21:19:27 -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 1selcj-0005Pv-I7 for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2024 21:19:25 -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 1selcj-0004Is-8h for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2024 21:19:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=From:MIME-Version:Date:To:In-Reply-To:References:Subject; bh=p5VOAYyO1oggr91m2NkudWFHqc28+4LIhwekBjwqVYE=; b=eS7wF6l7DX+7O2jaDHH7WiRbBArkJsnjBkRaENTBS4tskr2G0mpSBvfMZfVZOcm+HhfUeify/OR+zecuKkdIrG2TKn87QtjXuF3zHQH9I6ZQ/2ns3WpNNVyrbRnjuk/lyGiLxDVwCbt9pVheMrzV1O1TsoC3BD4AEkhx7rjGmD3BNwHclWYHA5e2iRgPbiz6KrQlQ2kzxQtg4TzvnHh7I8qfzk1kwgic7H1cOikJ2C9OPnhaiOyg8MFDQxDAMwKstjKkDXlEB+g0jLnxBW21JJHnR7+AZcEdmuEkkIXx9toq/RM3UYjJX6plZAbLsfe3ClIoDwnAYKmUeTw0Zavi8A==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1seldK-0000Dx-1p for bug-gnu-emacs@gnu.org; Thu, 15 Aug 2024 21:20:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Cecilio Pardo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Aug 2024 01:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6372 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: help confirmed Original-Received: via spool by 6372-submit@debbugs.gnu.org id=B6372.1723771169805 (code B ref 6372); Fri, 16 Aug 2024 01:20:02 +0000 Original-Received: (at 6372) by debbugs.gnu.org; 16 Aug 2024 01:19:29 +0000 Original-Received: from localhost ([127.0.0.1]:50000 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1selcm-0000Cu-UJ for submit@debbugs.gnu.org; Thu, 15 Aug 2024 21:19:29 -0400 Original-Received: from mail.imayhem.com ([82.223.54.191]:38643 helo=zealous-pike.82-223-54-191.plesk.page) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1selcl-0000Cg-AS for 6372@debbugs.gnu.org; Thu, 15 Aug 2024 21:19:28 -0400 Original-Received: from [192.168.68.104] (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 20EA087470 for <6372@debbugs.gnu.org.>; Fri, 16 Aug 2024 01:18:44 +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.104] Received-SPF: pass (zealous-pike.82-223-54-191.plesk.page: connection is authenticated) Content-Language: es-ES 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:290190 Archived-At: This is a multi-part message in MIME format. --------------0z3qr0QG0JWxXsyk0dJoHO74 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit This seems to happen because TrackPopupMenu returns as soon as the WM_LBUTTONDOWN is received. That message is correctly purged. The problem comes from the subsequent WM_LBUTTONUP message. This patch is not a clean solution, but keeps the problem local. --------------0z3qr0QG0JWxXsyk0dJoHO74 Content-Type: text/plain; charset=UTF-8; name="patch.diff" Content-Disposition: attachment; filename="patch.diff" Content-Transfer-Encoding: base64 ZGlmZiAtLWdpdCBhL3NyYy93MzJmbnMuYyBiL3NyYy93MzJmbnMuYwppbmRleCBiZDY1YWE0 O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d2FpdCBvbmx5IGZvciBzbyBsb25nICovCisJCXN0cnVjdCB0aW1lc3Bl YyBzdGFydCA9IGN1cnJlbnRfdGltZXNwZWMoKTsKKwkJd2hpbGUgKCFQZWVrTWVzc2FnZSAo JmFtc2csIGh3bmQsIFdNX0xCVVRUT05VUCwgV01fTEJVVFRPTlVQLAorCQkJCSAgICAgUE1f UkVNT1ZFKSkKKwkJICB7CisJCSAgICBpZiAodGltZXNwZWN0b2QgKHRpbWVzcGVjX3N1YiAo Y3VycmVudF90aW1lc3BlYyAoKSwKKwkJCQkJCSAgIHN0YXJ0KSkgPiAyLjAgKQorCQkgICAg ICBicmVhazsKKwkJICB9CisJCVJlbGVhc2VDYXB0dXJlKCk7CisJICAgICAgfQorCiAJICAg IC8qIEdldCB0aGUgbWVudSBzZWxlY3Rpb24sIGlmIGFueSAqLwogCSAgICBpZiAoUGVla01l c3NhZ2UgKCZhbXNnLCBod25kLCBXTV9DT01NQU5ELCBXTV9DT01NQU5ELCBQTV9SRU1PVkUp KQogCSAgICAgIHsK --------------0z3qr0QG0JWxXsyk0dJoHO74--