From unknown Fri Jun 20 07:13:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76629: NS click events don't select right window Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 28 Feb 2025 03:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 76629 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 76629@debbugs.gnu.org X-Debbugs-Original-To: "Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors" Received: via spool by submit@debbugs.gnu.org id=B.174071469113880 (code B ref -1); Fri, 28 Feb 2025 03:52:02 +0000 Received: (at submit) by debbugs.gnu.org; 28 Feb 2025 03:51:31 +0000 Received: from localhost ([127.0.0.1]:42455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tnrPP-0003bo-9c for submit@debbugs.gnu.org; Thu, 27 Feb 2025 22:51:31 -0500 Received: from lists.gnu.org ([2001:470:142::17]:59724) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tnrPN-0003bB-1L for submit@debbugs.gnu.org; Thu, 27 Feb 2025 22:51:29 -0500 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 1tnrPG-0000SD-SK for bug-gnu-emacs@gnu.org; Thu, 27 Feb 2025 22:51:22 -0500 Received: from dancol.org ([2600:3c01:e000:3d8::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tnrPE-0003fQ-RS for bug-gnu-emacs@gnu.org; Thu, 27 Feb 2025 22:51:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From:Sender: Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=TNvqxuX5pfu+QrqRJW2ydvQrsGjhBrKS/ZlCVa87ajA=; b=jfeoSBvNcwWam16Hv1Dyy8NR31 raqYnGFIQ/GnqMTVX2fxk6adLJzsxCbDzWwqT9/8jWOPpXHnVqOxUAaFQRlTipEaqFhZlB5L1RtSp MPVxFFTAQaOtHjAv/HZ+YLPe9UmdfRrNNHLvRedrjXg+dmsTKXoEQeAgiXRL3osuv2n87ybWnco1s oN7dhnkoUVotUYSIQCMZX2mDRkriiIWohm4ff7T7V2cFDT3cykt1cX2V/DCtFJp23SqubnnMq2d2j /g5T0UbpelVCbvwvvCk3gJuRiJ6UOQT+ytrjGvnfrTU8Kyu7ZmuLPcHABCtJM035t3fFzco+nnfvy h1MYVN9g==; Received: from dancol by dancol.org with local (Exim 4.96) (envelope-from ) id 1tnrP6-001JaO-2C for bug-gnu-emacs@gnu.org; Thu, 27 Feb 2025 22:51:12 -0500 From: Daniel Colascione User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Thu, 27 Feb 2025 22:51:18 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2600:3c01:e000:3d8::1; envelope-from=dancol@dancol.org; helo=dancol.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) Say we have a NS Emacs frame with two windows --- let's say L and R. We select L, then switch to another app on the OS. Then we click on the Emacs window in the area owned by R. I observe Emacs being focused but the selected window being L! If I click in exactly the same spot again, *then* R is selected. But I need two clicks where one should suffice. From unknown Fri Jun 20 07:13:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76629: NS click events don't select right window Resent-From: Ship Mints Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Mar 2025 21:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76629 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Daniel Colascione Cc: 76629@debbugs.gnu.org Received: via spool by 76629-submit@debbugs.gnu.org id=B76629.174095173910352 (code B ref 76629); Sun, 02 Mar 2025 21:43:01 +0000 Received: (at 76629) by debbugs.gnu.org; 2 Mar 2025 21:42:19 +0000 Received: from localhost ([127.0.0.1]:37745 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tor4k-0002gn-D2 for submit@debbugs.gnu.org; Sun, 02 Mar 2025 16:42:18 -0500 Received: from mail-ua1-x929.google.com ([2607:f8b0:4864:20::929]:43054) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tor4i-0002g9-5F for 76629@debbugs.gnu.org; Sun, 02 Mar 2025 16:42:16 -0500 Received: by mail-ua1-x929.google.com with SMTP id a1e0cc1a2514c-860f0e91121so4518095241.0 for <76629@debbugs.gnu.org>; Sun, 02 Mar 2025 13:42:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740951730; x=1741556530; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=6D7bW/1f0SeDawy8dQebabKxp39H+aeLbNu0h+N8Y3k=; b=RtOtsqr5bh+wLg7vjdqGB2BzKzEn/plAJf72yJ5vhcauhUHvbDOmPvbDPlMWHfS2Z8 vKCDjr57kTM6btsvJZUIKru57O2TMHagW4JOVMC+BNgRWLGo3IQtf+hRAKwryD3wvDTs xmdUAbFE4kI87D4G5KKnTLd74CuzwLfVid915QWGXmzPBMT9m2U6U1nzpoBJgnS6l37A SBYsbnAGXGMy+jWa0r2DuCGwUdWD1GvSTifRQGPoLvL9rgWwcRN4i56RqhhBQf85CNA9 C1RF6+/Tnt/9lUxc9hMKlnvsq2gFgJfFDwLh6dI6eWZZdzvqm6hA4rk0WmvUWkiVzX9+ VsqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740951730; x=1741556530; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=6D7bW/1f0SeDawy8dQebabKxp39H+aeLbNu0h+N8Y3k=; b=nDpNqazMzreLRHkApnWCDNPVEu4M1z1uJvqMLis30RoflcqmxcQaFfXJd7JvSQh/Z2 w/Tr+8t58FVbCs8CD1a+FFPwgGoZXtbwi74I9VBcq3e1hUiQju+AR0YN11k6gB39Zq/1 3kMYjUeH8cxC+ZY107ZexZ9Ok0wADnUvSMg1svsVE5xcJvO62OOQtiFls7hHDWPxAj9K AttweH2IAz+8qFm2qeuqZ4ALvchRqf+IGxprfAV/JCqVh9U+g8y13Hy0rSELc7mAOBPO 7XNZPaZ9IypvnJjChHEiLXyHxtWEz35Ui9ZLJluqL5v2PVDMtj+Ybor78wmkkVhfwJEk 7MRg== X-Gm-Message-State: AOJu0YzO2YosRY1r1uUtTyBiImihdiiNqUEDimQ2wr+Jcg9CY4ckVzOW g00FexsZ6CK9uPwqbowHz3/Cln3LsiR2kCUwwyXk1mKIU5mYr5xZ4LPN9OuSG0qQkWbZZvcFUpB wC59ltb66nZ/coihEf97O2trnY9GJtg== X-Gm-Gg: ASbGnctXg7lAZ1SAxckmq1/Sm2HXE8uxPmn3oPf06DzpSEL6B0kTUP8HCPz01KnlEFL i1l4ZEHOOBm0L9KIIEFDDfRIw9NJomAdMwxvGQnXvO2H6e8c8QG7V1uv3AbN/Pe2FpUzITJbT/+ J+mxmzOEz0/O55z7eu2FjBQ4SKHA== X-Google-Smtp-Source: AGHT+IGBeMQ80HNCvwXUKUw6DQw3wIpVNyxtw/mlSvn2nPCdA18XHItkn1wIzOBh5PjsU2k/xwgEXkOSDRfcirwgmi0= X-Received: by 2002:a05:6102:330f:b0:4bb:baa0:370b with SMTP id ada2fe7eead31-4c0441c6603mr6039114137.7.1740951730237; Sun, 02 Mar 2025 13:42:10 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ship Mints Date: Sun, 2 Mar 2025 16:41:59 -0500 X-Gm-Features: AQ5f1JqnEszN1wBPpcMZsIAvVAqNe8lG3LoKpJMZtKVefDR4kJEnt9UBMxLerUY Message-ID: Content-Type: multipart/alternative; boundary="00000000000073b7bc062f62e925" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --00000000000073b7bc062f62e925 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I use the NS builds, both as my production (now 30.1) and from master, and I do not see this behavior. Do you have implied window selection features enabled like focus-follows-mouse or mouse-autoselect-window? Do you use any mac applications or helpers that might be interfering? On Thu, Feb 27, 2025 at 10:52=E2=80=AFPM Daniel Colascione wrote: > Say we have a NS Emacs frame with two windows --- let's say L and R. > We select L, then switch to another app on the OS. Then we click on the > Emacs window in the area owned by R. I observe Emacs being focused but > the selected window being L! If I click in exactly the same spot again, > *then* R is selected. But I need two clicks where one should suffice. > > > > --00000000000073b7bc062f62e925 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I use the NS builds, both as my production (now 30.1) and from master,= =C2=A0and I do not see this behavior.=C2=A0 Do you have implied window sele= ction features enabled like focus-follows-mouse or mouse-autoselect-window?= =C2=A0 Do you use any mac applications or helpers that might be interfering= ?

--00000000000073b7bc062f62e925-- From unknown Fri Jun 20 07:13:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76629: NS click events don't select right window Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Mar 2025 22:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76629 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ship Mints Cc: 76629@debbugs.gnu.org Received: via spool by 76629-submit@debbugs.gnu.org id=B76629.174095317519516 (code B ref 76629); Sun, 02 Mar 2025 22:07:01 +0000 Received: (at 76629) by debbugs.gnu.org; 2 Mar 2025 22:06:15 +0000 Received: from localhost ([127.0.0.1]:37996 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1torRu-00054g-Fp for submit@debbugs.gnu.org; Sun, 02 Mar 2025 17:06:14 -0500 Received: from dancol.org ([2600:3c01:e000:3d8::1]:43906) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1torRp-000546-Qa for 76629@debbugs.gnu.org; Sun, 02 Mar 2025 17:06:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: References:In-Reply-To:Subject:CC:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=F3tqz49werX1W5w7P70GFTH17l3giR60rp8XL/AAgCY=; b=d3ZKGp9c2yfFrmPB30yL/mfyOp SuAP7BHyMDmX6USCiDn3uCR2fFH8dvk9QwQ5Tp5FhHLs5qP0cptGCHjLa+AsQqXf2cCaOmulcQ71P 7Di1zxkb3/+Hxn3mF0O7WaeFIt6qk1z/ZPb6dcsS0K7iegVWeVnTzt6Y56ddOHrZ1wCBliPhHBDgq Z/cxj7aP6UfYSgcZ9ahtm06ysF3JQ1xXWvIzAbVkKYb7iQgBDGwCMZnSAuQ2aXdvdXFHM36Fz9Omk HCwWsYw5d2wq+G2FvrBh/Vrr78FI3jtqCiJGKOt/MEm27q5DVNrKbSm2Vr2rYKzgn86/fqUlrRlev ur3FfRSw==; Received: from [2600:1006:b182:5691:0:49:356b:df01] (port=57556 helo=[IPv6:::1]) by dancol.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1torRf-001eW8-1G; Sun, 02 Mar 2025 17:05:59 -0500 Date: Sun, 02 Mar 2025 17:06:06 -0500 From: Daniel Colascione User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On March 2, 2025 4:41:59 PM EST, Ship Mints wrote: >I use the NS builds, both as my production (now 30=2E1) and from master, = and >I do not see this behavior=2E Do you have implied window selection featu= res >enabled like focus-follows-mouse or mouse-autoselect-window? Do you use >any mac applications or helpers that might be interfering? > Don't know why you're not seeing it=2E Apparently macOS is supposed to beh= ave this way unless you override , which I have made Emacs do From unknown Fri Jun 20 07:13:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76629: NS click events don't select right window Resent-From: Ship Mints Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Mar 2025 22:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76629 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Daniel Colascione Cc: 76629@debbugs.gnu.org Received: via spool by 76629-submit@debbugs.gnu.org id=B76629.174095417525673 (code B ref 76629); Sun, 02 Mar 2025 22:23:02 +0000 Received: (at 76629) by debbugs.gnu.org; 2 Mar 2025 22:22:55 +0000 Received: from localhost ([127.0.0.1]:38196 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tori2-0006g1-IH for submit@debbugs.gnu.org; Sun, 02 Mar 2025 17:22:54 -0500 Received: from mail-vk1-xa2f.google.com ([2607:f8b0:4864:20::a2f]:58550) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tori0-0006fP-3A for 76629@debbugs.gnu.org; Sun, 02 Mar 2025 17:22:52 -0500 Received: by mail-vk1-xa2f.google.com with SMTP id 71dfb90a1353d-5236fe026c7so474243e0c.0 for <76629@debbugs.gnu.org>; Sun, 02 Mar 2025 14:22:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740954166; x=1741558966; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ve4blnZHfeaYDW+ubzuPgwOS+iELYPFIaBrX8MUC3ZU=; b=X0iQxHVDH1zhk48q+SEDaBU9e8v5oXSrpiQwZQ1j9jAbBMi+377/Xo1QPQe7FtSRfi o/KKWwmjsB/tgeh6i8HQLtuIbN88MnWRIqQ9KjG4WTQ0HqU8s1d6wslIiTM9W/XpDsG1 i+Z9qp1GrZG1hNbBSltxjiOz1rMtJKlVkbhL/X7rf+XEHn5NIumrdy+f5QO4dGCCcH8R uMW6TN+nqqpxz72R/MfaYcVtDeJJ5JyXgqFMVixSPSHlVlWrFjD0GlpdajyDl7V1SqGQ PbxOHOI9nXwkiKscUqnQWFCCY6yMfqhq/bqgwcbAP4j7k/GdOfbzk2cbG0ffhvsKDqrn x+VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740954166; x=1741558966; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ve4blnZHfeaYDW+ubzuPgwOS+iELYPFIaBrX8MUC3ZU=; b=he/tFgObWzmL3cYEV6IOgeirjGe7BLv/sPjHyVchONFoQs8HiKf/I+uE6cYwFS4UfR 55Ni7wxolXDLYKor116NXQG6MiEqlkB2WB9uGow86h3qg2i8s21APy2Y21Q22XxmTPLy Nn53j8raIdt/QCzMA7+/t3vio4mbfNiYS5YXtFDWakaPNxlJypDtTvhpsGV8JLDxiEKF ocBzwZO7dOnmG+3GyASk5AI7LJ6PqXIISeLi7AlIVlu7Bq+IEZzcUYlLs/fkOnlXCTsF 5YRtX5AfIBNUEeH/fZuPuV03A3Y0F9/g5/7V1vqaSa7Ri5mwlV8t5QPuvKOupeMGYS2a JDsA== X-Gm-Message-State: AOJu0YxpKy91t1LUoWdV6u8CYPXpDoKGFPwyjZxdtXC7uMshesqg27w9 i5zhCcNV0HBo1TGR/IsdlXLZOBjYD/xY943XtoFjEf7mMQCYA4RnIh0KX+KSKBpG7WBrFh3GW5F OhOSgKnfuzzB7e80PcHHmvRn4hJwxIg== X-Gm-Gg: ASbGnct3WoCaORolSDSgG4k8wNyEV00YCLlPv66otV+5mVrQ5YafiZuvIZB6sXxJ/5e i8SS02XwAxYFW4KSN2yv9QL7y8lYUB2fzjClMMTrdwlGKMNxkJijURINJ7q4DH00upCb85G7JVS P43asrmpGj9h6dt//kOoBGi7Hw9w== X-Google-Smtp-Source: AGHT+IE4vmvsk9A2K/sx7JBgnjP+2K5pKm/MZF66PCRZQrIweRt7StTgvVc54zCUGhjsUdMenpOJw4foS0vQcQPXchk= X-Received: by 2002:a05:6122:8f0b:b0:520:51a4:b81c with SMTP id 71dfb90a1353d-5235b844301mr5934635e0c.6.1740954166191; Sun, 02 Mar 2025 14:22:46 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Ship Mints Date: Sun, 2 Mar 2025 17:22:34 -0500 X-Gm-Features: AQ5f1JpIRcJG3jryrs4MzlQicdgsvJ31jh4-Vhitv56JCR_RWtewcDfvG0cXIp8 Message-ID: Content-Type: multipart/alternative; boundary="000000000000a57031062f637ac2" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000a57031062f637ac2 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I'm on 12.7.6, perhaps this is associated with behavioral changes in later macOS releases. Do you have an example of another application you switch to when you see this behavior? I switch to Chrome or another Emacs session or Terminal.app and back and I don't see the issue. The window I last selected remains selected and if I click in any other window, that one is correctly selected. I tried again both with my configuration and on master with -Q and it seems fine. On Sun, Mar 2, 2025 at 5:06=E2=80=AFPM Daniel Colascione wrote: > > > On March 2, 2025 4:41:59 PM EST, Ship Mints wrote: > >I use the NS builds, both as my production (now 30.1) and from master, a= nd > >I do not see this behavior. Do you have implied window selection featur= es > >enabled like focus-follows-mouse or mouse-autoselect-window? Do you use > >any mac applications or helpers that might be interfering? > > > > Don't know why you're not seeing it. Apparently macOS is supposed to > behave this way unless you override < > https://developer.apple.com/documentation/appkit/nsview/acceptsfirstmouse= (for:)>, > which I have made Emacs do > --000000000000a57031062f637ac2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I'm on 12.7.6, perhaps this is associated with behavioral changes in= later macOS releases.=C2=A0 Do you have an example=C2=A0of another applica= tion you switch to when you see this behavior?=C2=A0 I switch to Chrome or = another Emacs session or Terminal.app and back and I don't see the issu= e.=C2=A0 The window I last selected remains selected and if I click in any = other window, that one is correctly selected.=C2=A0 I tried again both with= my configuration and on master with -Q and it seems fine.

<= div class=3D"gmail_quote gmail_quote_container">
On Sun, Mar 2, 2025 at 5:06=E2=80=AFPM Daniel Colascione <dancol@dancol.org> wrote:


On March 2, 2025 4:41:59 PM EST, Ship Mints <shipmints@gmail.com> wrote:
>I use the NS builds, both as my production (now 30.1) and from master, = and
>I do not see this behavior.=C2=A0 Do you have implied window selection = features
>enabled like focus-follows-mouse or mouse-autoselect-window?=C2=A0 Do y= ou use
>any mac applications or helpers that might be interfering?
>

Don't know why you're not seeing it. Apparently macOS is supposed t= o behave this way unless you override <https://developer.apple.com/documentation/appkit/nsvie= w/acceptsfirstmouse(for:)>, which I have made Emacs do
--000000000000a57031062f637ac2-- From unknown Fri Jun 20 07:13:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76629: NS click events don't select right window Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 02 Mar 2025 23:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76629 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ship Mints Cc: 76629@debbugs.gnu.org Received: via spool by 76629-submit@debbugs.gnu.org id=B76629.17409567499791 (code B ref 76629); Sun, 02 Mar 2025 23:06:02 +0000 Received: (at 76629) by debbugs.gnu.org; 2 Mar 2025 23:05:49 +0000 Received: from localhost ([127.0.0.1]:38614 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tosNY-0002Xr-PJ for submit@debbugs.gnu.org; Sun, 02 Mar 2025 18:05:49 -0500 Received: from dancol.org ([2600:3c01:e000:3d8::1]:54534) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tosNV-0002XU-1O for 76629@debbugs.gnu.org; Sun, 02 Mar 2025 18:05:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=FJvZVn5qdRC1VW9SZtqTsuTp9mW53pCxnnNFxWt86To=; b=RqlZ7acALV3dHMVFi/EpjmR+q+ P9kcQ+DHEXywrS+0odiJqu0ObznE6Es3l0D3NyRHv4nLmDjZlArB8Dfk173tfSgkKU01/XLFUVoZT WckC29vUVRbLocSh10fFHjg+3jAyc5PlX2QB2xdvyQCQ6UPyvQuVy9mVYKHKRy8cgTo1trQtguokQ uDSmtBffxOlbCMmYpB6tKR/7cA6XPTtoseQXBffiFo//hDAnRbLqCH7R9lwLOVT/sevMtdAPLnouj Hs5gg9nlDHKY1lRUwq7Q6bIQVyXIAZADeVLI/vzvM3JEmY4nw/se3Wqmn6jqPIvDhpsKLKXE//s0e ypxsATpg==; Received: from dancol by dancol.org with local (Exim 4.96) (envelope-from ) id 1tosNK-001ep3-23; Sun, 02 Mar 2025 18:05:34 -0500 From: Daniel Colascione In-Reply-To: References: User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Sun, 02 Mar 2025 18:05:42 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Ship Mints writes: Please don't top-post. > I'm on 12.7.6, perhaps this is associated with behavioral changes in later > macOS releases. Do you have an example of another application you switch > to when you see this behavior? I switch to Chrome or another Emacs session > or Terminal.app and back and I don't see the issue. The window I last > selected remains selected and if I click in any other window, that one is > correctly selected. I tried again both with my configuration and on master > with -Q and it seems fine. That's a pretty old version. It's also after EOL, so you're risking security problems by not upgrading. As for the click change ---- who knows? Maybe Apple has changed something. Emacs works fine on master now. From unknown Fri Jun 20 07:13:55 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Daniel Colascione Subject: bug#76629: closed (Re: bug#76629: NS click events don't select right window) Message-ID: References: X-Gnu-PR-Message: they-closed 76629 X-Gnu-PR-Package: emacs Reply-To: 76629@debbugs.gnu.org Date: Mon, 03 Mar 2025 01:20:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1740964803-30828-1" This is a multi-part message in MIME format... ------------=_1740964803-30828-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #76629: NS click events don't select right window which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 76629@debbugs.gnu.org. --=20 76629: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D76629 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1740964803-30828-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 76629-done) by debbugs.gnu.org; 3 Mar 2025 01:19:07 +0000 Received: from localhost ([127.0.0.1]:40131 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1touSY-0007wD-Cc for submit@debbugs.gnu.org; Sun, 02 Mar 2025 20:19:07 -0500 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:59656) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1touSU-0007uz-U6 for 76629-done@debbugs.gnu.org; Sun, 02 Mar 2025 20:19:04 -0500 Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-5e5050d19e9so4088531a12.3 for <76629-done@debbugs.gnu.org>; Sun, 02 Mar 2025 17:19:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740964736; x=1741569536; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=6Es/+L46aCneUIXp7SF4sx7koovm2FH3dc8w8aKyAI0=; b=J6yf8BjT4pqyqHnIz0lvRjpRTnzGjX3pu3kpR6TVSe04doE1u7zC7DS6fNy/lQS6T7 89q/iZpl8GxDzR9zt/415M6mULhmkVxDpb+SrNNCwpYdUM/c9R+ZARYtjiO7NfnHv6dT M+v7TRADUsqEiKzNC1kJddYheJcKVUd2c0apT/GUdvxjMmydMu/owEBfgRWfnhcpODFz q3uNyEJeMSJNLkH3pL8tIknBTmf5vrzNTeosDNMAbBOLdw/HOIyZGET5/rz0hZng9Xbb vnjFDFtbJLuTsCgHpNBr2Tht1kSdrU9BPVgHBvfuzzLCNZDZ+7s6AZMEBVUwIJCqh2FN VNlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740964736; x=1741569536; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=6Es/+L46aCneUIXp7SF4sx7koovm2FH3dc8w8aKyAI0=; b=bPptJ2DhW9K2CWw10g4CiuOXNopCbbIbdm1x3lpRbsBdf25VYSvN/863f5f7mkGVmz 8R+ycRa3wTs1x+Q5EQIHjxr3HMKzr7EkxB6d0u2UFpFE52ipRw0m/C+kxefD2VWaADSe y73eQ4HCjdJO5EYvfpC+IM5tln2sV4vv5pbc6YPJybvm2TVLpu7nsAVNWoVCNhaDs0Th RbcjmEU5Ez2YSwhmxHyWbzgIUiQT74G4jMYDB0xjlX3eU6j1pYtOuy6FJAjjA5rx5ydd 5YaGGhLED3cS5+YZAkOHQ9WcnZq61LQChIhRUQoWtGcnh4DANVc3krCGy99GGADgIDdw SM2w== X-Gm-Message-State: AOJu0Yyq10SWXKo5xLg2TTfjZODvSgrj95Mj6OHxDq7o9hG97ask2iHB kdiSncbizsBLkcWIintBHM6dTbQyGcad+VqrrL44Z9wX4esytFEUCJnpGMsl9fduLPsD61OLme2 8F+GacWS0E/CEBuya7TbbzmY6kt8= X-Gm-Gg: ASbGnct7sJ6gLWNjDCYnqyIoF4JWbOj+J2+syGaQGdIiHfsCjrbLPrHG4nntGEaFoyJ /q1eJvVJ4y6bjJLXkzjafC0h/Z9Yafb6N0x+A8+YUpBBLWs8Cm6rUh1zz02NUv8F3C1OnFzP8RD IClAW+deTBoi1QkpagBeOhj8mjtg== X-Google-Smtp-Source: AGHT+IHnEHv4uiidOdPC9MZTUdDsTQB9Cu2/FeXQay9eL5daDGA0R8PkUvqwnPa4e5FSeMD0Kj9s9wAOwL0yXQiWE+s= X-Received: by 2002:a05:6402:5242:b0:5e0:9269:f54e with SMTP id 4fb4d7f45d1cf-5e4d6ad84ccmr13473197a12.14.1740964736472; Sun, 02 Mar 2025 17:18:56 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 2 Mar 2025 17:18:55 -0800 From: Stefan Kangas In-Reply-To: References: MIME-Version: 1.0 Date: Sun, 2 Mar 2025 17:18:55 -0800 X-Gm-Features: AQ5f1Jprn-mu54lO5WGoietEWc0pROdStRRDObc-Ya9Z0NHmdFdsCBaABdH0wgE Message-ID: Subject: Re: bug#76629: NS click events don't select right window To: Daniel Colascione , Ship Mints Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 76629-done Cc: 76629-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Version: 30.1 Daniel Colascione writes: > Ship Mints writes: > > Please don't top-post. > >> I'm on 12.7.6, perhaps this is associated with behavioral changes in later >> macOS releases. Do you have an example of another application you switch >> to when you see this behavior? I switch to Chrome or another Emacs session >> or Terminal.app and back and I don't see the issue. The window I last >> selected remains selected and if I click in any other window, that one is >> correctly selected. I tried again both with my configuration and on master >> with -Q and it seems fine. > > That's a pretty old version. It's also after EOL, so you're risking > security problems by not upgrading. > > As for the click change ---- who knows? Maybe Apple has > changed something. Emacs works fine on master now. Thanks, I can confirm that this is fixed by your commit 354598874061ab9ecb9362d7ac4233494b51252b. I'm therefore closing this bug report. ------------=_1740964803-30828-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 Feb 2025 03:51:31 +0000 Received: from localhost ([127.0.0.1]:42455 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tnrPP-0003bo-9c for submit@debbugs.gnu.org; Thu, 27 Feb 2025 22:51:31 -0500 Received: from lists.gnu.org ([2001:470:142::17]:59724) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tnrPN-0003bB-1L for submit@debbugs.gnu.org; Thu, 27 Feb 2025 22:51:29 -0500 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 1tnrPG-0000SD-SK for bug-gnu-emacs@gnu.org; Thu, 27 Feb 2025 22:51:22 -0500 Received: from dancol.org ([2600:3c01:e000:3d8::1]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tnrPE-0003fQ-RS for bug-gnu-emacs@gnu.org; Thu, 27 Feb 2025 22:51:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Type:MIME-Version:Message-ID:Date:Subject:To:From:Sender: Reply-To:Cc:Content-Transfer-Encoding:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=TNvqxuX5pfu+QrqRJW2ydvQrsGjhBrKS/ZlCVa87ajA=; b=jfeoSBvNcwWam16Hv1Dyy8NR31 raqYnGFIQ/GnqMTVX2fxk6adLJzsxCbDzWwqT9/8jWOPpXHnVqOxUAaFQRlTipEaqFhZlB5L1RtSp MPVxFFTAQaOtHjAv/HZ+YLPe9UmdfRrNNHLvRedrjXg+dmsTKXoEQeAgiXRL3osuv2n87ybWnco1s oN7dhnkoUVotUYSIQCMZX2mDRkriiIWohm4ff7T7V2cFDT3cykt1cX2V/DCtFJp23SqubnnMq2d2j /g5T0UbpelVCbvwvvCk3gJuRiJ6UOQT+ytrjGvnfrTU8Kyu7ZmuLPcHABCtJM035t3fFzco+nnfvy h1MYVN9g==; Received: from dancol by dancol.org with local (Exim 4.96) (envelope-from ) id 1tnrP6-001JaO-2C for bug-gnu-emacs@gnu.org; Thu, 27 Feb 2025 22:51:12 -0500 From: Daniel Colascione To: "Eshel Yaron via Bug reports for GNU Emacs, the Swiss army knife of text editors" Subject: NS click events don't select right window User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Thu, 27 Feb 2025 22:51:18 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2600:3c01:e000:3d8::1; envelope-from=dancol@dancol.org; helo=dancol.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) Say we have a NS Emacs frame with two windows --- let's say L and R. We select L, then switch to another app on the OS. Then we click on the Emacs window in the area owned by R. I observe Emacs being focused but the selected window being L! If I click in exactly the same spot again, *then* R is selected. But I need two clicks where one should suffice. ------------=_1740964803-30828-1-- From unknown Fri Jun 20 07:13:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76629: NS click events don't select right window Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Mar 2025 01:25:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76629 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Kangas , Ship Mints Cc: 76629-done@debbugs.gnu.org Received: via spool by 76629-done@debbugs.gnu.org id=D76629.1740965093431 (code D ref 76629); Mon, 03 Mar 2025 01:25:03 +0000 Received: (at 76629-done) by debbugs.gnu.org; 3 Mar 2025 01:24:53 +0000 Received: from localhost ([127.0.0.1]:40220 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1touY8-00006s-VM for submit@debbugs.gnu.org; Sun, 02 Mar 2025 20:24:53 -0500 Received: from dancol.org ([2600:3c01:e000:3d8::1]:53456) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1touY6-00006a-22 for 76629-done@debbugs.gnu.org; Sun, 02 Mar 2025 20:24:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: References:In-Reply-To:Subject:CC:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=QbyQu4SBQlRRcNY3Da2vA+C6bxyK0FENNEyoV+2auQg=; b=TVOPkDvaM0l/69RB7plVnRzJc1 dB1opmkoMSojzp6LHUmv+lJ33/aCEaZGd/tZUevXVNZa3bsSeKsgZqHTep/38JUi7fArxWEPJNATO bCwgrWftIqV1BoF+KGHkL5MpLB9JzsNDYiEdn/cXz1Dz/mCHI/XxDqUpYi9L7RDOZ5wJgE54xA5Kh dbPkMFdLsknOv5Rk2O6+FC0ZeXAGl3IQiFhtobj55yB4VVMui6PPD/XShtmvIuPC6sxSvG3An1AwH X6ILHs5UT3hPMeYsMtGIEIucGzA6lmk+LvGQPiyC7n2npyz2ZbrEE8o3wK7Q2ySG1xNG6X/UtGRmv No2FoWbg==; Received: from [2600:1006:b182:5691:0:49:356b:df01] (port=56412 helo=[IPv6:::1]) by dancol.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1touXx-001fal-0E; Sun, 02 Mar 2025 20:24:41 -0500 Date: Sun, 02 Mar 2025 20:24:33 -0500 From: Daniel Colascione User-Agent: K-9 Mail for Android In-Reply-To: References: Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On March 2, 2025 8:18:55 PM EST, Stefan Kangas = wrote: >Version: 30=2E1 > >Daniel Colascione writes: > >> Ship Mints writes: >> >> Please don't top-post=2E >> >>> I'm on 12=2E7=2E6, perhaps this is associated with behavioral changes = in later >>> macOS releases=2E Do you have an example of another application you s= witch >>> to when you see this behavior? I switch to Chrome or another Emacs se= ssion >>> or Terminal=2Eapp and back and I don't see the issue=2E The window I = last >>> selected remains selected and if I click in any other window, that one= is >>> correctly selected=2E I tried again both with my configuration and on= master >>> with -Q and it seems fine=2E >> >> That's a pretty old version=2E It's also after EOL, so you're risking >> security problems by not upgrading=2E >> >> As for the click change ---- who knows? Maybe Apple has >> changed something=2E Emacs works fine on master now=2E > >Thanks, I can confirm that this is fixed by your commit >354598874061ab9ecb9362d7ac4233494b51252b=2E > >I'm therefore closing this bug report=2E Thanks! From unknown Fri Jun 20 07:13:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76629: NS click events don't select right window References: In-Reply-To: Resent-From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Mar 2025 10:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76629 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Daniel Colascione Cc: 76629@debbugs.gnu.org Received: via spool by 76629-submit@debbugs.gnu.org id=B76629.17409962485533 (code B ref 76629); Mon, 03 Mar 2025 10:05:01 +0000 Received: (at 76629) by debbugs.gnu.org; 3 Mar 2025 10:04:08 +0000 Received: from localhost ([127.0.0.1]:44894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tp2ee-0001RB-0p for submit@debbugs.gnu.org; Mon, 03 Mar 2025 05:04:08 -0500 Received: from mail-lf1-x12e.google.com ([2a00:1450:4864:20::12e]:60834) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tp2eb-0001QD-Nu for 76629@debbugs.gnu.org; Mon, 03 Mar 2025 05:04:06 -0500 Received: by mail-lf1-x12e.google.com with SMTP id 2adb3069b0e04-54838cd334cso5015387e87.1 for <76629@debbugs.gnu.org>; Mon, 03 Mar 2025 02:04:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740996239; x=1741601039; darn=debbugs.gnu.org; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:sender:from:to:cc:subject:date :message-id:reply-to; bh=CfAOL/PDE1HHZ5TvVDJtj0APQ82HzZsI8CIGN6xzScw=; b=LL5dI0j4sTopGvhoaItzGe8HORQGSx8Svx6ORn72DPVcirMKfEb1G4J/iPBUQ+OxMd F0oV5Z8h63tUoQkwa1K2e2KLFVWk2rnV6YNhdOZsEIPC/VCzYpxiX5iLgBqb1gHZfluJ SteSmFqOhE3qyf4FHvUASBKyGM3z/mmZvL879Avi05oCJuvo4gywb+G/6OLsHtaAeqbE TTNmxVGwCTXiG6LTLYJwVvzk1odnDs6W1LKZvzVl0vJzjD+5thPzviKoDLSNHuYeg62u 9hFXAapubJWNtwP1lzLQYm1P6gw2CSd7h3V5+dX+vsGPekvp4eouiqDYcmTHbRd64/dq sOYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740996239; x=1741601039; h=to:cc:date:message-id:subject:mime-version :content-transfer-encoding:from:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=CfAOL/PDE1HHZ5TvVDJtj0APQ82HzZsI8CIGN6xzScw=; b=Vy1jbtcJYlRwAXXBB6Qctla9wySotv3w0UnMJkCy++5D1AzZCRiXTAlUCEae4fWanj n3xn+3AthbcgfFHHP/hvzyoSzf2LCrGUX0A75HRBRV2iLEsI7d3QweACG0ZEW3ePE/+y 3HKO3R2kVWOlhsyWh93svwC9m8Xg2ab9ooPkL3gtwm4CppDRN9eCFlWHTR5PDqsZUg/n EkzqIk2bpn7/Q3DRW5K+GfrrLUg4jFxSrursKUvjQF5T5xt5vmczNUzmr/2dGfGmhX3Z RV5D4PifqBrrvZ+ROe6IeL8o2GXnquZoI5xWdtWXEu0Dfot6/CVstGxnnncZLQlchjwY XfUw== X-Gm-Message-State: AOJu0Yxvy1kEzWzmo44N6WQvpziEcleKwdTsqvyMwlXfqDqO4WAEamY0 rtlJrJ0fmoDGxBdM7dDCrNk9DNYOj8UYJ0EDpIAXVRg+QQwC8UYa X-Gm-Gg: ASbGncvTHd+OQAYw5AjBaYF7r1uR8pldODUWDwcDmuutDq+cRMMWJYg/9WkKvToCrbt Yz+s1QQH+VLXsGb4hVxHrPzPIkWeg9UD+h3OfBvz6GHHXkaEMBc03EAv0PC0TOK+0FlNVG9I90P B4O8L2uPnSDHkfGeogHab0tGQckm0xZwL6XRJ+dRSOY+H4cAMeVmDghTVwiDBFmi0KT6z8IurCV iizuRICPqng3GTy/HssOw4otQHO8ZyCK70/1HdKeyeDWlBB9GC/67NaEh3PmxAB2YE1yPKomnZZ Q8thHPp5u+UOi3AqOjZXLF3qgwAYR0pjOwdeSlkXboSTMkC87pegnjmiM/r5hS/Cs2tfomWONLC E8F4IkIbJ7OHlaPwN7sXGCIKzJ2QPxdIkopE= X-Google-Smtp-Source: AGHT+IGq+fwM/DB92CxHpW5xwsIgnaynM+N4KmjX3kIJQW3YrBpXoXEI9coxoIBnyb6Ml/8lRFBgMQ== X-Received: by 2002:a05:6512:3a90:b0:549:4416:df02 with SMTP id 2adb3069b0e04-5494c332da2mr5138922e87.41.1740996238582; Mon, 03 Mar 2025 02:03:58 -0800 (PST) Received: from smtpclient.apple (c188-150-186-155.bredband.tele2.se. [188.150.186.155]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-549443be3acsm1252327e87.168.2025.03.03.02.03.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Mar 2025 02:03:58 -0800 (PST) From: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\)) Message-Id: <910CEF09-1174-42EE-8686-9BCF7EB0DFC2@gmail.com> Date: Mon, 3 Mar 2025 11:03:57 +0100 X-Mailer: Apple Mail (2.3654.120.0.1.15) X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This change appeared on master in 3545988740. Is there really a consensus for this? Click-through does not appear how = (MacOS) applications work in general. While it seems useful for = switching between unobscured Emacs windows, it's a bit surprising when = clicking on a partially obscured Emacs in order to raise and activate = it. Is there a way to make the behaviour more conditional in this respect? = Or, at least, configurable. From unknown Fri Jun 20 07:13:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76629: NS click events don't select right window Resent-From: Ship Mints Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Mar 2025 12:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76629 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= Cc: 76629@debbugs.gnu.org, Daniel Colascione Received: via spool by 76629-submit@debbugs.gnu.org id=B76629.174100545827140 (code B ref 76629); Mon, 03 Mar 2025 12:38:02 +0000 Received: (at 76629) by debbugs.gnu.org; 3 Mar 2025 12:37:38 +0000 Received: from localhost ([127.0.0.1]:45779 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tp53B-00073d-IQ for submit@debbugs.gnu.org; Mon, 03 Mar 2025 07:37:37 -0500 Received: from mail-vk1-xa31.google.com ([2607:f8b0:4864:20::a31]:46276) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tp538-00072j-6m for 76629@debbugs.gnu.org; Mon, 03 Mar 2025 07:37:35 -0500 Received: by mail-vk1-xa31.google.com with SMTP id 71dfb90a1353d-51e902b58c0so3755563e0c.0 for <76629@debbugs.gnu.org>; Mon, 03 Mar 2025 04:37:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741005448; x=1741610248; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=v/9U7Wbo7GmTgYYErqaj+7ez8WomaIkgFkI3EmbwH4A=; b=aktpjeF+i+jIzeCYgwTrv5+Ze85vlGi5eMDPOUauw6IRCxSA/rbREUfIEbNTzQoZUH ZpIhIaWjMcz6tpBd3HTiqn8MLQrwZWUx7QEWkjEr4Z89hZryUO6STzG2a6L0Z5IzMTtH bU5TFmnK5ziKkzbiZ5G1cVpflgO6hMEzkGxFcrkzpvappoKPW0o3GTkdGjdYXRn9V5LX AKE9DIS6QMD5d9b0bcTCJSrYLWNxCqfLoTeQRz0QvsM3NzpNnlgHJhHE/wVlfQZrVOoa YH2POum9+5YVVpYrVc201gkC1fXCVSPWHu0SyDO6RkC8Si7z1Ggq1Jns6G9oyzkn2ycd eEQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741005448; x=1741610248; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=v/9U7Wbo7GmTgYYErqaj+7ez8WomaIkgFkI3EmbwH4A=; b=R9v505NzCJS3Wv/sYhNiE/m9oxkb3j7Brn5txCih/22y4Nh+OWDlSZ0Y39rbz1Z0Gk qmfAk/6zEn8hfKwZrwMDper/w4EFUYZyzFe/ZG3YUMRa80B1KRUgrwF20dQWRPgqqzN7 H3e8X79CbBk9JqvEdKRjOxnAs0IB5S0onBf2KgXuRVJ7KcyNLxlDw6bs+ff31FmsWscE qXDS+FYoKufz1Imdy0UKe0dIsSzMJU+t4aKprCJQsvNaFRVSMuPtXAJQmpKFoFkQyDId J5vio3n38LXKD61FzgSTxw+jsyw6d2zH8LyjmkGY1kAmLjo4XPMP7YXZXgWJ5ena3AQk rtmw== X-Forwarded-Encrypted: i=1; AJvYcCWioJ802pbr762/s/n1MCNTzSvl9TB0DmA5Hmi0+taVMREMkZImS0T7zlED9hEPzV39KqNzKw==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yy8Cs4Wqa+LKWYUwviYGGH4fuKlsGU+HjDFP+e9wBt1Tnp67ycB IYs9ZY3LeGes1l7UQ3pPXBmQJZpNEh3hI1uZH0vjT/rnDrcjnFnehZSdNHBOuUEXIvgGE6A4G8F YfswflqTz+QPhAN1pX2I9EnrO7/4= X-Gm-Gg: ASbGnctbPih82rhZmXuvxMnM5iCt3esGTjRVatmikRGqZGjjSTEuPlA6bsSNDhavleI n3DhWAa/N0x7qPmCWGFo8/n3rb/K62d000YCj9brxu8Rir0CoW10jb4WIY5GBi1NLkL4Zih3Mvy f6Evfbh4S7nLv1/axNbifEhX7/Iw== X-Google-Smtp-Source: AGHT+IF+pfID7Vkfh3bU0oVM0YfLLIudp9MMdrVdtnZxpj1Cx5mQtasHiJhE9CtcqQundoj38UrPW8YA8Mx2yu1XcYo= X-Received: by 2002:a05:6102:4691:b0:4bb:cbbc:4c with SMTP id ada2fe7eead31-4c044881d64mr9161605137.2.1741005448363; Mon, 03 Mar 2025 04:37:28 -0800 (PST) MIME-Version: 1.0 References: <910CEF09-1174-42EE-8686-9BCF7EB0DFC2@gmail.com> In-Reply-To: <910CEF09-1174-42EE-8686-9BCF7EB0DFC2@gmail.com> From: Ship Mints Date: Mon, 3 Mar 2025 07:37:17 -0500 X-Gm-Features: AQ5f1Joe3tDvYS4DrJ6sdN_kcU1NQnlDGKGb-Hpx-tbOjujoDwORvRzoPCDMFQ8 Message-ID: Content-Type: multipart/alternative; boundary="0000000000004d4833062f6f6b20" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --0000000000004d4833062f6f6b20 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable You and I are clearly using Emacs differently. I'd like to observe this behavior myself. Can you describe what you're doing? When you say partially obscured Emacs, what do you mean? Example, I almost always run Emacs with maximized frames (not full screen). I split a frame left and right into two windows L and R as Daniel had. I'll switch to Messages which partially obscures Emacs with. Then back. I almost always do this with the keyboard at least a hundred times per day. I've tried the pointer recently due to Daniel's prompting, but didn't see the issue. -Stephane On Mon, Mar 3, 2025 at 5:05=E2=80=AFAM Mattias Engdeg=C3=A5rd < mattias.engdegard@gmail.com> wrote: > This change appeared on master in 3545988740. > > Is there really a consensus for this? Click-through does not appear how > (MacOS) applications work in general. While it seems useful for switching > between unobscured Emacs windows, it's a bit surprising when clicking on = a > partially obscured Emacs in order to raise and activate it. > > Is there a way to make the behaviour more conditional in this respect? Or= , > at least, configurable. > > > > > --0000000000004d4833062f6f6b20 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
You and I are clearly using Emacs differently.=C2=A0 I'd like to obs= erve this behavior myself.=C2=A0 Can you describe what you're doing?=C2= =A0 When you say partially obscured Emacs, what do you mean?=C2=A0 Example,= I almost always run Emacs with maximized frames (not full screen).=C2=A0 I= split a frame left and right into two windows L and R as Daniel had.=C2=A0= I'll switch to Messages which partially obscures Emacs with.=C2=A0 The= n back.=C2=A0 I almost always do this with the keyboard at least a=C2=A0hun= dred times per day.=C2=A0 I've tried the pointer recently due to Daniel= 's prompting, but didn't see the issue.

-Stephane=C2=A0

On Mon, Mar 3, 2025 at 5:05=E2=80=AFAM Mattias Engdeg=C3=A5rd <mattias.engdegard@gmail.com>= ; wrote:
This ch= ange appeared on master in 3545988740.

Is there really a consensus for this? Click-through does not appear how (Ma= cOS) applications work in general. While it seems useful for switching betw= een unobscured Emacs windows, it's a bit surprising when clicking on a = partially obscured Emacs in order to raise and activate it.

Is there a way to make the behaviour more conditional in this respect? Or, = at least, configurable.




--0000000000004d4833062f6f6b20-- From unknown Fri Jun 20 07:13:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76629: NS click events don't select right window Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Mar 2025 18:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76629 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , Daniel Colascione Cc: 76629@debbugs.gnu.org Received: via spool by 76629-submit@debbugs.gnu.org id=B76629.17410268949739 (code B ref 76629); Mon, 03 Mar 2025 18:35:02 +0000 Received: (at 76629) by debbugs.gnu.org; 3 Mar 2025 18:34:54 +0000 Received: from localhost ([127.0.0.1]:51718 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tpAcv-0002Wx-BY for submit@debbugs.gnu.org; Mon, 03 Mar 2025 13:34:53 -0500 Received: from mail-ed1-x531.google.com ([2a00:1450:4864:20::531]:61510) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tpAcr-0002WW-VZ for 76629@debbugs.gnu.org; Mon, 03 Mar 2025 13:34:50 -0500 Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-5e52c1c3599so3127607a12.2 for <76629@debbugs.gnu.org>; Mon, 03 Mar 2025 10:34:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741026883; x=1741631683; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:from:to:cc:subject:date :message-id:reply-to; bh=LVLaVL50YCHlQvqhFfBnioGQbOr5NjHHODWTb2HraEA=; b=gmfX2/bAbW6vh56ef9Fr8C6F3wTW2MVQhI3s1MXF/xSteUBsjlgVn6SjxW5dtXcQ3s +amD24twtUdmdjFVzN2G+bnNIf/1GpEiJ1BsRp5kB+RiryYiNmNqgoiCr8e/GQH91Iws wf2BZntQ1cob5TDlbT9le1/qJypaCrTLOH9dS1JFfFpQSjWgH0yojr4sYOajeCMRXPGG BzDOo9H8nRFL75ulEQKs/WZ99eJumC3yhgsOyzzFvID1P+yv3AuplJ20jcZmYinyBYjO ZmwLI/QGH8VekVaq5sgyWU0F0uHJmQxKOfBjsfmiOtJoU8L0WgeSxZIuKIhNxhhEyFip t8iA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741026883; x=1741631683; h=content-transfer-encoding:cc:to:subject:message-id:date :mime-version:references:in-reply-to:from:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=LVLaVL50YCHlQvqhFfBnioGQbOr5NjHHODWTb2HraEA=; b=fjj7anNa+2OdRmPYuTmFR44X6+LyGRoL6oYXZfSJ/lHPTB4q/ykrKUXFFc4o75RPot RkI87c0TmqSVcBnTHxn0zbSWLQmJIutZAGL6HxJKBAbeWI4vT2nzgVuCRmUlz/YORyVE LEo/9ejMSMds0QnL0tMX69YJSXyoiSMymSUeymVVPxyQjzjv+hmaRP+gd3mkcRijsdbi 2ZAVIW5OdCmwZ31LJ76q/Gi/TchFQb0TnftwxoYB9wIH2Mn7vk11tLVb8s/ipiumgE1B KXjB15VaRdog1CIlnlTV6jhM2nbQzYcWnek6kLA/hq0bdPSewoZ6ixMdCbcLY1PzzASN uixQ== X-Gm-Message-State: AOJu0YzenhJ4FtRbGGR2fFZBNMoc2Q1Q8CNeu24ChZrzQm8l01zyrn5R JDd8Pg43DwLtP53L/FeAcPxyBIpq9tJnQOs7EV0iJUaaZkr8PjfThHnzUSs3Nq7L1BdrRa18fZJ WiNKxlUluuz4MZ7jnvKaR/9P66/Q= X-Gm-Gg: ASbGnctR7axfLSuWIRm7L2dLazEIg+8fsUIBmXhT1k9PCfjdJYLekuHgxlabVohcejZ J7JPt9c0tn8qX6ZWJwg/ytvGfC0r+BBRvap6lfbXhc1831h0wP28tdtyo8jbFx8+KWx5q7YWHim CI7VWxsXLEj/u5FOFFs2D6vQd0AA== X-Google-Smtp-Source: AGHT+IFy2xzCp5x4FteBx2BqUfe+UhuBtU5k01iobH+/b9M8CM/KE8oRr6ofI7nvvAM4zEyCE3KvCl79qUzd8eHb3q0= X-Received: by 2002:a05:6402:42c2:b0:5de:dd31:1fad with SMTP id 4fb4d7f45d1cf-5e4d6ad45e8mr15278074a12.6.1741026883290; Mon, 03 Mar 2025 10:34:43 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 3 Mar 2025 10:34:42 -0800 From: Stefan Kangas In-Reply-To: <910CEF09-1174-42EE-8686-9BCF7EB0DFC2@gmail.com> References: <910CEF09-1174-42EE-8686-9BCF7EB0DFC2@gmail.com> MIME-Version: 1.0 Date: Mon, 3 Mar 2025 10:34:42 -0800 X-Gm-Features: AQ5f1JohjBk-iouixBygyScgZ1XJS1lvOmVQl5KLmSXTcTTNleuxE-lapKUf2Ak Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Mattias Engdeg=C3=A5rd writes: > This change appeared on master in 3545988740. > > Is there really a consensus for this? Click-through does not appear how (= MacOS) applications work in general. While it seems useful for switching be= tween unobscured Emacs windows, it's a bit surprising when clicking on a pa= rtially obscured Emacs in order to raise and activate it. > > Is there a way to make the behaviour more conditional in this respect? Or= , at least, configurable. IIUC, this is how Emacs used to behave on macOS, so I originally treated this as just a bug fix. That said, I have no objection to making it optional, of course. I also don't have an opinion on what should be the default because: - the historical behavior of Emacs, and similarity to other platforms, seem to speak in favor of having this on by default - being consistent with macOS seems to speak in favor of having it off Please let your voices be heard, if you have a reasoned opinion here. Daniel, could you perhaps look into adding a defcustom for this? From unknown Fri Jun 20 07:13:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76629: NS click events don't select right window Resent-From: Ship Mints Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Mar 2025 18:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76629 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Kangas Cc: 76629@debbugs.gnu.org, Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , Daniel Colascione Received: via spool by 76629-submit@debbugs.gnu.org id=B76629.174102724711821 (code B ref 76629); Mon, 03 Mar 2025 18:41:01 +0000 Received: (at 76629) by debbugs.gnu.org; 3 Mar 2025 18:40:47 +0000 Received: from localhost ([127.0.0.1]:51755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tpAic-00034Y-Aa for submit@debbugs.gnu.org; Mon, 03 Mar 2025 13:40:46 -0500 Received: from mail-ua1-x92e.google.com ([2607:f8b0:4864:20::92e]:45132) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tpAiY-00033U-8V for 76629@debbugs.gnu.org; Mon, 03 Mar 2025 13:40:43 -0500 Received: by mail-ua1-x92e.google.com with SMTP id a1e0cc1a2514c-86718c2c3b9so1888275241.2 for <76629@debbugs.gnu.org>; Mon, 03 Mar 2025 10:40:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741027236; x=1741632036; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=G2H5YE2o1XZeki2eIir6ER/WcgHJfnkqnTzlHY8fLQ0=; b=cvBSKFdtFynTNudFjzoCUJLEUw19q7DT7hOId5xLW0vBK97e82d4ThYIKZonfraX0S Zd+c9NJ55soMBKxNJlKn5DZEH5Nxyh6b8cAYhO+P4/lMHlhsITJYLdpCkQKIj5h7pZGF xcyDq5SyeOF+P2OH/Rc2+xIG0Im4aGtVCRhC946//3+k/wXHe9sgk7v87efEk4PiS2Er /hQiwX+n2gLCan+T+UIMqnmX3BFGUb4xHjCkNUk2gVUpV6fFRs1kwDlZM76JJ3vGxDvH 1qkJ5/ewETEyoW9T24s/6N4dQCXrPcE0WOm1/WyE9hiJNk0IackuuVxKmDE+qGNMRGqH 63Qw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741027236; x=1741632036; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=G2H5YE2o1XZeki2eIir6ER/WcgHJfnkqnTzlHY8fLQ0=; b=iiV4bK05ECZKbJFsjeAoOGh552ma3+IzPRF/PFlWL+h9NvEzre10U7l1EzQ/SEXS1h ZEWqNQ8Jj2jJiPSB1HIP7amBXSbEQXt1cZhb+dhA5hDgUqgo4gNCPcqbgWoECbi3CgbH C5IPWL6v51W2AbKMISo38aDhSIhT4JZI/EOLT7TouiuzvgC7hWlQuHaERUC14S4sHRc6 27TvkLj7fYU1psWPp333aBWULXPSqPUykZ7lP05MYOuU4ybqp/lyyHBlOkZ++f9kYCuS uO6+q3ZcSl9y0YKIrvj9da5SZSrfxZe3LzAIR38ENCuaXpr91vK+ee+OKGgAVuP6HMXZ jUeA== X-Forwarded-Encrypted: i=1; AJvYcCV0aBp5L4sYefi9H6YL6DRSBWhxGXx9yzBIsa12GWgKWkOafaxEox0qJfXN9R7PdGI9hbHFDA==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzvIdbS8G2eC1A35WtBbzHLSGvgjoORKyjqQ+1qgz3AxwHcZkQ6 CIL3Rz+02YuxmM+entSISRLFuFnmeX6nrriY7buPelJw1Y3OtRNeHrMXK46piMnHmvvOMXpJtBW vMAa/swIJsvmeYF6UCAfuhdWg+EI+9Q== X-Gm-Gg: ASbGncvAyn8mj7GqXrZlagzy9vosgqZUa7OLOQg9XKus8Uj49U1loFYNJHsjpDwfpp1 LkOrl5l70pmJ87tEg8a1N4stJoU3Lq3CpmTyIFBZlon9NLH/oK7nSMKltsE77SbELZz5q85DBqO SmqoRPQ4TJEIYfw04INrgqypP0Pg== X-Google-Smtp-Source: AGHT+IFGyfEi7HbwBEEiA1s2mXLYrCaYpUccHhiV6kwWTVVimiWp/oTBt8looEQftu0aRx9djjMziDEx89HOmP1Rd54= X-Received: by 2002:a05:6102:2910:b0:4c1:b0ad:a0bd with SMTP id ada2fe7eead31-4c1b0ada351mr1415907137.23.1741027236369; Mon, 03 Mar 2025 10:40:36 -0800 (PST) MIME-Version: 1.0 References: <910CEF09-1174-42EE-8686-9BCF7EB0DFC2@gmail.com> In-Reply-To: From: Ship Mints Date: Mon, 3 Mar 2025 13:40:25 -0500 X-Gm-Features: AQ5f1JqMEso7Jvc-XsCMh1afqYEtmICUCifY9-bwoB6yqiI8ckkMZ6PxRSBi8Ac Message-ID: Content-Type: multipart/alternative; boundary="000000000000f7dc10062f747d8b" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000f7dc10062f747d8b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I can't reproduce the behavior, so it's hard for me to say. On Mon, Mar 3, 2025 at 1:35=E2=80=AFPM Stefan Kangas wrote: > Mattias Engdeg=C3=A5rd writes: > > > This change appeared on master in 3545988740. > > > > Is there really a consensus for this? Click-through does not appear how > (MacOS) applications work in general. While it seems useful for switching > between unobscured Emacs windows, it's a bit surprising when clicking on = a > partially obscured Emacs in order to raise and activate it. > > > > Is there a way to make the behaviour more conditional in this respect? > Or, at least, configurable. > > IIUC, this is how Emacs used to behave on macOS, so I originally treated > this as just a bug fix. > > That said, I have no objection to making it optional, of course. > > I also don't have an opinion on what should be the default because: > - the historical behavior of Emacs, and similarity to other platforms, > seem to speak in favor of having this on by default > - being consistent with macOS seems to speak in favor of having it off > > Please let your voices be heard, if you have a reasoned opinion here. > > Daniel, could you perhaps look into adding a defcustom for this? > > > > --000000000000f7dc10062f747d8b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I can't reproduce=C2=A0the behavior, so it's hard for me to say.=

On Mon, Mar 3, 2025 at 1:35=E2=80=AFPM Stefan= Kangas <stefankangas@gmail.co= m> wrote:
Mattias Engdeg=C3=A5rd <mattias.engdegard@gmail.com> writes:

> This change appeared on master in 3545988740.
>
> Is there really a consensus for this? Click-through does not appear ho= w (MacOS) applications work in general. While it seems useful for switching= between unobscured Emacs windows, it's a bit surprising when clicking = on a partially obscured Emacs in order to raise and activate it.
>
> Is there a way to make the behaviour more conditional in this respect?= Or, at least, configurable.

IIUC, this is how Emacs used to behave on macOS, so I originally treated this as just a bug fix.

That said, I have no objection to making it optional, of course.

I also don't have an opinion on what should be the default because:
- the historical behavior of Emacs, and similarity to other platforms,
=C2=A0 seem to speak in favor of having this on by default
- being consistent with macOS seems to speak in favor of having it off

Please let your voices be heard, if you have a reasoned opinion here.

Daniel, could you perhaps look into adding a defcustom for this?



--000000000000f7dc10062f747d8b-- From unknown Fri Jun 20 07:13:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76629: NS click events don't select right window Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Mar 2025 19:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76629 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Kangas Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , 76629@debbugs.gnu.org Received: via spool by 76629-submit@debbugs.gnu.org id=B76629.174102956322654 (code B ref 76629); Mon, 03 Mar 2025 19:20:02 +0000 Received: (at 76629) by debbugs.gnu.org; 3 Mar 2025 19:19:23 +0000 Received: from localhost ([127.0.0.1]:51984 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tpBJy-0005tJ-OA for submit@debbugs.gnu.org; Mon, 03 Mar 2025 14:19:23 -0500 Received: from dancol.org ([2600:3c01:e000:3d8::1]:56022) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tpBJu-0005t6-8s for 76629@debbugs.gnu.org; Mon, 03 Mar 2025 14:19:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Date: References:In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=SvnqImF0ViJR1AZkNeex2avR0F71ZdrVWHOTA7dPKE4=; b=VQYa2MvmBjL7GCYQoEpBAqw7rf tRphsSRXITPMZ9SvFHxw8YW07zneV5ASIoLtM7HeOJ+OYFtIo7X2iMalh6bDhL16zsHeR/3PvHJqT 3cgdCWGZemVzCDzL1FJvRgDorFnVgX0jZBaWhYh1iXg1rtKOT3rln7l1Z9KowC2hrpHKO8OT/13Zt gQAeHewG1pkK/Qk7IOGuofUwKEAN6njQPJwYWJ52kPVap4OPNlF7ZHrfnfZ45UpHjP8x/4j7VzlkI 0LY39Zz3P0VueWtq9DIR5FFL2ORH6zIwt9XMb7mu+l8UoD+PCPjXRigfNzxp8iH8hp/NWcbv18PzO YZW22lAw==; Received: from dancol by dancol.org with local (Exim 4.96) (envelope-from ) id 1tpBJj-001k0A-2e; Mon, 03 Mar 2025 14:19:07 -0500 From: Daniel Colascione In-Reply-To: References: <910CEF09-1174-42EE-8686-9BCF7EB0DFC2@gmail.com> User-Agent: mu4e 1.12.8; emacs 31.0.50 Date: Mon, 03 Mar 2025 11:19:16 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Stefan Kangas writes: > Mattias Engdeg=C3=A5rd writes: > >> This change appeared on master in 3545988740. >> >> Is there really a consensus for this? Click-through does not appear >> how (MacOS) applications work in general. While it seems useful for >> switching between unobscured Emacs windows, it's a bit surprising >> when clicking on a partially obscured Emacs in order to raise and >> activate it. >> >> Is there a way to make the behaviour more conditional in this >> respect? Or, at least, configurable. > > IIUC, this is how Emacs used to behave on macOS, so I originally treated > this as just a bug fix. > > That said, I have no objection to making it optional, of course. > > I also don't have an opinion on what should be the default because: > - the historical behavior of Emacs, and similarity to other platforms, > seem to speak in favor of having this on by default > - being consistent with macOS seems to speak in favor of having it off The situation seems a bit more nuanced than a choice of "on" or "off". I think the concept is that you're supposed to enable click-through for "utility" items (like toolbar buttons) and for document *selection*, but require a second click for interaction with documents. You can see this behavior in Chrome. Start it up, go to a web page, then give some other app focus. When Chrome is no longer focused, click its page reload button. The page will reload immediately. Now switch focus again, and this time click a link on the page. The click just focuses and raises the Chrome window. You have to click a second time to follow the link. It looks like Apple's put a lot of thought into the click-through model. If we're going to follow the same pattern, we should use click-through for toolbar buttons, mode-line stuff, and so on, but not for window interaction. A non-focused click on an Emacs window should *select* the window but not execute any special commands in that window, e.g. following links, expanding headers, and so on. It probably shouldn't move point either. Others have been tripped up by this too: https://github.com/microsoft/vscode/issues/24634 We might be able to implement this model by letting the first click go through only if it resolves to some command that has a new ns-first-click-capable property or interactive spec or something. That's a lot of work, so I'd rather just have an on/off toggle right now with a todo. I'd prefer to default the setting to on, since Emacs is more convenient to use this way. > Please let your voices be heard, if you have a reasoned opinion here. > > Daniel, could you perhaps look into adding a defcustom for this? Sure. From unknown Fri Jun 20 07:13:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76629: NS click events don't select right window Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Mar 2025 19:34:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76629 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Daniel Colascione Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , 76629@debbugs.gnu.org Received: via spool by 76629-submit@debbugs.gnu.org id=B76629.174103040625159 (code B ref 76629); Mon, 03 Mar 2025 19:34:02 +0000 Received: (at 76629) by debbugs.gnu.org; 3 Mar 2025 19:33:26 +0000 Received: from localhost ([127.0.0.1]:52039 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tpBXa-0006Xi-6U for submit@debbugs.gnu.org; Mon, 03 Mar 2025 14:33:26 -0500 Received: from mail-ed1-x534.google.com ([2a00:1450:4864:20::534]:46510) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tpBXI-0006Wx-St for 76629@debbugs.gnu.org; Mon, 03 Mar 2025 14:33:10 -0500 Received: by mail-ed1-x534.google.com with SMTP id 4fb4d7f45d1cf-5e538388dd1so2194236a12.1 for <76629@debbugs.gnu.org>; Mon, 03 Mar 2025 11:33:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741030382; x=1741635182; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=w1A/9j0p+VvaUpdJbUaait9isaG24s11E5qL+MzCO/g=; b=UxDotdNV9fT4qxNgjF4NU1ticYIG8iJSefCIf/YIpYix5JDyTSuenMDUuTwzYo8lvL CZUR2gCK+IjZXkkbAHT1c5HqNYBpSB8nctFqKBk8yuQCQf0L+TIAaZVmnJPx2cLWrjbG ySGowllPR3pPybwj98Xh9F/i0u4TkFv1UWQq1Vjd+imeUqSJsErx7ybmAC3jU29OET2x qIanaUwEztRNn5o7d9sL3x6OELjjrhL9LxVyBrVr3sQWlpD6mTOcuQLVnwAN5XyuY2ao tahOvT/p9VcWijhVJV0tdc/4hCxkPEyNDQSscdIn0sw3ejBmCgm0dbf2C6rJXk8bPx4V 17Jw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741030382; x=1741635182; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=w1A/9j0p+VvaUpdJbUaait9isaG24s11E5qL+MzCO/g=; b=tzk3PJX7FRTrwF0jY3NwLwpGB4+O2DxblVMND75U3xBKaELRXPcpqghYrsowyvFAlC 48CmumkoIkl2WZJxOUYcS0fps5Ry+X4IjxqEpagfSUBUa0j3gy2OzdWI6juWCkTVNpwO GXHWv6p5WAB6q68F8Vd6iiSuCuLsvOowFXref/wRXq3yyb0qUT5AyznXwZln1aJNwq0w 7SGAAbdTXUgyHefRstpS52UL4n/rWxQU+FFMwDSVHhD46rAIIVmn6DMhU2d7ESNKM3GR DvuRmW8q7kZcRyE+Cfy0fW2q1n+W0nGpkDlb2ZOiLdfloTERb6y0DzcmAC3C2b12CGh8 4RYA== X-Forwarded-Encrypted: i=1; AJvYcCUWGfc+BOjff83hEri59F6OTujQj0bX7wG3jGKifTV7m1aqcyfKCoyW7qZKDlicuGaJsqiNpQ==@debbugs.gnu.org X-Gm-Message-State: AOJu0YzWMilsCVNGC8qZGuIqtuNQo3sRjOCo8HDvFBPwGCXVvIduVcRP FPg2QhZdI20kuPV028ZHw5L+3kTY9k8X0JOwyfWIHAUZJLyyAjCK3dQKYcHPhodU7LCVZIIxLso WOr21WqpvxR0DwU7FGC+juqpNxVMS5gOkc0U= X-Gm-Gg: ASbGncvR3fh9NnhuiePfoDeGPJbDTVgCyYXRQdrd4nLJHyeiC1EdOJ0WiYmO6KCzCC1 i3kbpd3PWo8j0z7SP0lSy0z7BxxdcEWUKkDUh4sBwG84IjX2p4cd2qIr3W+K7gccK48BP57Nv7u IK6O6CBhT4BY44pjTgncc41JMLIA== X-Google-Smtp-Source: AGHT+IHQwx/jWLnDXWgEU/uSuwhA3MvsF0kkbDsVfr46S9niVmRnN88olPloaAF3YijkO78lMWgCVI7mrFgTDue3hlk= X-Received: by 2002:a05:6402:1ed2:b0:5e4:cbb5:1c6f with SMTP id 4fb4d7f45d1cf-5e4d6b69245mr15039315a12.24.1741030382307; Mon, 03 Mar 2025 11:33:02 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 3 Mar 2025 11:33:00 -0800 From: Stefan Kangas In-Reply-To: References: <910CEF09-1174-42EE-8686-9BCF7EB0DFC2@gmail.com> MIME-Version: 1.0 Date: Mon, 3 Mar 2025 11:33:00 -0800 X-Gm-Features: AQ5f1Jrd8j77_uuCArZ-X7Wdt21FZpOtkaMQG4ccLclAoHAc2gRxsJntyfJATEU Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Daniel Colascione writes: > The situation seems a bit more nuanced than a choice of "on" or "off". > I think the concept is that you're supposed to enable click-through for > "utility" items (like toolbar buttons) and for document *selection*, but > require a second click for interaction with documents. [...] > That's a lot of work, so I'd rather just have an on/off toggle right now > with a todo. I'd prefer to default the setting to on, since Emacs is > more convenient to use this way. Thanks for taking the time to look into this properly. If no one will volunteer to implement the more involved version, I agree that a defcustom is the best we can do for now. >> Please let your voices be heard, if you have a reasoned opinion here. >> >> Daniel, could you perhaps look into adding a defcustom for this? > > Sure. Thanks! From unknown Fri Jun 20 07:13:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76629: NS click events don't select right window Resent-From: Daniel Colascione Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Mar 2025 19:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76629 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Kangas Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , 76629@debbugs.gnu.org Received: via spool by 76629-submit@debbugs.gnu.org id=B76629.174103075626256 (code B ref 76629); Mon, 03 Mar 2025 19:40:02 +0000 Received: (at 76629) by debbugs.gnu.org; 3 Mar 2025 19:39:16 +0000 Received: from localhost ([127.0.0.1]:52123 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tpBdD-0006pO-SR for submit@debbugs.gnu.org; Mon, 03 Mar 2025 14:39:16 -0500 Received: from dancol.org ([2600:3c01:e000:3d8::1]:50222) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tpBdA-0006pC-MA for 76629@debbugs.gnu.org; Mon, 03 Mar 2025 14:39:13 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dancol.org; s=x; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID: References:In-Reply-To:Subject:CC:To:From:Date:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Owrx16PB7RqfClZL58d50c9Ffy/OLVM4TSA7FQyD4pc=; b=cWvhzVvL5sbYySyTwGbmZ8+3/w wjbb2k7bYc86xGwQgoIf4VZdvwfzmwXzTRIkDUseocavDFl1ayfCFz1kTLITrccN6CACvroo0eTco 4T/4sXPEzmojpr5ww3sN9QHs5G2Vmey6X23QGbmZ9DEcXYyJSFdB1NeUlZBH0Bflf9nexfLfyswvm 5ifnASGctBkxyjMGbz7Ds4+GrZoUJDRcMRK9gW7WdHK/gvqV7ZfhZzG9k33MQ5Fj7m+8v6u8VA2yb tzIiNtrxGYbdetCVA84LTVkr3ODtjt9WlQEF88Au/1JM2KoKKNTMca6nPBNByqykFno+u7oB1S3RL eseSWHXQ==; Received: from [2600:1010:b041:803d:0:56:fa54:9a01] (port=39718 helo=[IPv6:::1]) by dancol.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1tpBd0-001kAx-0s; Mon, 03 Mar 2025 14:39:02 -0500 Date: Mon, 03 Mar 2025 11:39:07 -0800 From: Daniel Colascione User-Agent: K-9 Mail for Android In-Reply-To: References: <910CEF09-1174-42EE-8686-9BCF7EB0DFC2@gmail.com> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On March 3, 2025 11:33:00 AM PST, Stefan Kangas = wrote: >Daniel Colascione writes: > >> The situation seems a bit more nuanced than a choice of "on" or "off"= =2E >> I think the concept is that you're supposed to enable click-through for >> "utility" items (like toolbar buttons) and for document *selection*, bu= t >> require a second click for interaction with documents=2E > >[=2E=2E=2E] > >> That's a lot of work, so I'd rather just have an on/off toggle right no= w >> with a todo=2E I'd prefer to default the setting to on, since Emacs is >> more convenient to use this way=2E > >Thanks for taking the time to look into this properly=2E > >If no one will volunteer to implement the more involved version, I agree >that a defcustom is the best we can do for now=2E We can make a menu defoption with 'always and 'never choices for click thr= ough, then add an 'auto option later=2E From unknown Fri Jun 20 07:13:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76629: NS click events don't select right window Resent-From: Ship Mints Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Mar 2025 19:46:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76629 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Daniel Colascione Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , 76629@debbugs.gnu.org, Stefan Kangas Received: via spool by 76629-submit@debbugs.gnu.org id=B76629.174103111527646 (code B ref 76629); Mon, 03 Mar 2025 19:46:03 +0000 Received: (at 76629) by debbugs.gnu.org; 3 Mar 2025 19:45:15 +0000 Received: from localhost ([127.0.0.1]:52159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tpBj0-0007Bn-EC for submit@debbugs.gnu.org; Mon, 03 Mar 2025 14:45:15 -0500 Received: from mail-ua1-x935.google.com ([2607:f8b0:4864:20::935]:55626) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tpBiw-00076S-Cu for 76629@debbugs.gnu.org; Mon, 03 Mar 2025 14:45:11 -0500 Received: by mail-ua1-x935.google.com with SMTP id a1e0cc1a2514c-86b3b60d647so2116973241.3 for <76629@debbugs.gnu.org>; Mon, 03 Mar 2025 11:45:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741031104; x=1741635904; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0ookQyWy6zjDRbKOJUtNRquMEdYb1LhtBEuTtx+2sB4=; b=fgmRx5ZYqMnKwflsu8geTq2Or4Zfxe6oE4WKPNVj0iFCf4AC+WfytRTnfNDtQh/LMb loBMDUslt3QQLihiMjWZvvrdexgH6d2B1GpkFodaCl+nVPPN07VQI6gVQiLbacahrJVe pZhwEE4ZRF/KgtmbsVgJvIqacbTQT9b4ZN1I0SCcrkMTh8hARp3n5OmtJFvhRL8xj/5P EEJ1cjclVAY+Y/5vrhYhE2JxaBz42rGoVWPm93x5X8oEpmNf8PFM7RC9ubq/ZQn2XVmz EXdRnyFEJfEzi/SIGn3vQGKnfj7rlgKKVmPH307hFOfTJzdlm7ckhZ7gkWqvXYHu7kw6 hCVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741031104; x=1741635904; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0ookQyWy6zjDRbKOJUtNRquMEdYb1LhtBEuTtx+2sB4=; b=NMyn1VdM/RUluFQc3d4VCbFPdAqoWoQrYo0F6swB5+q6jmDFpxFAlooUzfwrhQBCU9 WID8GbnHlTBNHnO5fXs9NXx6s3RH0a1pRPrF12MCk6gvPrutqR9nQ+2ckb8JdzrKz+2k 4vpJ+i8VNruBwuz1XI51mp+jKrJLkrqH/7drAECBCjueVXQxFP0kSs44lc6BnqJ9Bfja o4+7Hf1lKlofNZdZKAQukhBv/w3ULbpUEZpdrn49GfoXf2m7y4BGXLzpMeHeS5Gcn35Z EvBKcDwECNFQzGmylbJXfEKAxVTYMhlb+ZDHTD7x3gxOtFVDlefb9nP46H5HP8ITLVbw RH8A== X-Forwarded-Encrypted: i=1; AJvYcCUxgrU9oh28PvLDQaO9KWW6srpfHLl7oDcHPiayIpZ5S+Ww5q3wP8pRyr5h3tT2D7DllOcQ5Q==@debbugs.gnu.org X-Gm-Message-State: AOJu0YwlxXLD1UicT1fl7fdtltNptO7YzbZW+KfdsEtEMvQJCYDj0fkL x6vUyn3hd+/lHbWPyqyqP5wvREs/D4a1N9luMQxGELnQi+c4qJHgEHftRzrEVWtMFrQ2fokhPgv G48osHVVvJg5FvHQfyE4uNSjdbgs= X-Gm-Gg: ASbGncs8xb1VwkMGAIQm0/wnSQfK4xU5eFURWP83SAmCZO5SgxoeOQukHvsZ2q/q7+X 0FkdMx0v3/fvVTfhuTnsKvrxIxufYSfdZJPaZAScBW85PA+Fz6JmMoCDfg3JMS+x0Fzjyf6dHbw z1c2DSao9L/Vj3gq/3gPsektNVFw== X-Google-Smtp-Source: AGHT+IF0TUr7HhX0hd7/AtQ18xAxQjlWbo38aB/laEjEiy/aPTkGCDNt2hlHhPPOacrT/4eFYgCotFTY7ArZOrEnjSU= X-Received: by 2002:a05:6102:6c4:b0:4bb:c8e5:aa8b with SMTP id ada2fe7eead31-4c044d31023mr7779520137.22.1741031104270; Mon, 03 Mar 2025 11:45:04 -0800 (PST) MIME-Version: 1.0 References: <910CEF09-1174-42EE-8686-9BCF7EB0DFC2@gmail.com> In-Reply-To: From: Ship Mints Date: Mon, 3 Mar 2025 14:44:52 -0500 X-Gm-Features: AQ5f1Jrc3OOKTXN7xd983Qm5lwpF5tMFXO6WlAzOxR4enQNa12HyBHYCpUDR5mc Message-ID: Content-Type: multipart/alternative; boundary="000000000000835b9b062f756448" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --000000000000835b9b062f756448 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, Mar 3, 2025 at 2:21=E2=80=AFPM Daniel Colascione wrote: > Stefan Kangas writes: > > > Mattias Engdeg=C3=A5rd writes: > > > >> This change appeared on master in 3545988740. > >> > >> Is there really a consensus for this? Click-through does not appear > >> how (MacOS) applications work in general. While it seems useful for > >> switching between unobscured Emacs windows, it's a bit surprising > >> when clicking on a partially obscured Emacs in order to raise and > >> activate it. > >> > >> Is there a way to make the behaviour more conditional in this > >> respect? Or, at least, configurable. > > > > IIUC, this is how Emacs used to behave on macOS, so I originally treate= d > > this as just a bug fix. > > > > That said, I have no objection to making it optional, of course. > > > > I also don't have an opinion on what should be the default because: > > - the historical behavior of Emacs, and similarity to other platforms, > > seem to speak in favor of having this on by default > > - being consistent with macOS seems to speak in favor of having it off > > The situation seems a bit more nuanced than a choice of "on" or "off". > I think the concept is that you're supposed to enable click-through for > "utility" items (like toolbar buttons) and for document *selection*, but > require a second click for interaction with documents. > > You can see this behavior in Chrome. Start it up, go to a web page, > then give some other app focus. When Chrome is no longer focused, click > its page reload button. The page will reload immediately. Now switch > focus again, and this time click a link on the page. The click just > focuses and raises the Chrome window. You have to click a second time > to follow the link. > > It looks like Apple's put a lot of thought into the click-through model. > If we're going to follow the same pattern, we should use click-through > for toolbar buttons, mode-line stuff, and so on, but not for window > interaction. A non-focused click on an Emacs window should *select* the > window but not execute any special commands in that window, > e.g. following links, expanding headers, and so on. It probably > shouldn't move point either. > > Others have been tripped up by this too: > https://github.com/microsoft/vscode/issues/24634 > > We might be able to implement this model by letting the first click go > through only if it resolves to some command that has a new > ns-first-click-capable property or interactive spec or something. > > That's a lot of work, so I'd rather just have an on/off toggle right now > with a todo. I'd prefer to default the setting to on, since Emacs is > more convenient to use this way. > > > Please let your voices be heard, if you have a reasoned opinion here. > > > > Daniel, could you perhaps look into adding a defcustom for this? > > Sure. > To observe this behavior, I was supposed to click not in a text window but on some other UI control? --000000000000835b9b062f756448 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
= On Mon, Mar 3, 2025 at 2:21=E2=80=AFPM Daniel Colascione <dancol@dancol.org> wrote:
<= div class=3D"gmail_quote gmail_quote_container">
Stefan Kangas <stefankangas@gmail.com> writes:

> Mattias Engdeg=C3=A5rd <mattias.engdegard@gmail.com> writes:
>
>> This change appeared on master in 3545988740.
>>
>> Is there really a consensus for this? Click-through does not appea= r
>> how (MacOS) applications work in general. While it seems useful fo= r
>> switching between unobscured Emacs windows, it's a bit surpris= ing
>> when clicking on a partially obscured Emacs in order to raise and<= br> >> activate it.
>>
>> Is there a way to make the behaviour more conditional in this
>> respect? Or, at least, configurable.
>
> IIUC, this is how Emacs used to behave on macOS, so I originally treat= ed
> this as just a bug fix.
>
> That said, I have no objection to making it optional, of course.
>
> I also don't have an opinion on what should be the default because= :
> - the historical behavior of Emacs, and similarity to other platforms,=
>=C2=A0 =C2=A0seem to speak in favor of having this on by default
> - being consistent with macOS seems to speak in favor of having it off=

The situation seems a bit more nuanced than a choice of "on" or &= quot;off".
I think the concept is that you're supposed to enable click-through for=
"utility" items (like toolbar buttons) and for document *selectio= n*, but
require a second click for interaction with documents.

You can see this behavior in Chrome.=C2=A0 Start it up, go to a web page, then give some other app focus.=C2=A0 When Chrome is no longer focused, cli= ck
its page reload button.=C2=A0 The page will reload immediately.=C2=A0 Now s= witch
focus again, and this time click a link on the page.=C2=A0 The click just focuses and raises the Chrome window.=C2=A0 You have to click a second time=
to follow the link.

It looks like Apple's put a lot of thought into the click-through model= .
If we're going to follow the same pattern, we should use click-through<= br> for toolbar buttons, mode-line stuff, and so on, but not for window
interaction.=C2=A0 A non-focused click on an Emacs window should *select* t= he
window but not execute any special commands in that window,
e.g. following links, expanding headers, and so on.=C2=A0 It probably
shouldn't move point either.

Others have been tripped up by this too:
https://github.com/microsoft/vscode/issues/24634=

We might be able to implement this model by letting the first click go
through only if it resolves to some command that has a new
ns-first-click-capable property or interactive spec or something.

That's a lot of work, so I'd rather just have an on/off toggle righ= t now
with a todo.=C2=A0 I'd prefer to default the setting to on, since Emacs= is
more convenient to use this way.

> Please let your voices be heard, if you have a reasoned opinion here.<= br> >
> Daniel, could you perhaps look into adding a defcustom for this?

Sure.

To observe thi= s=C2= =A0behavior, I was supposed to click not in a text window but on som= e other UI=C2= =A0control?
--000000000000835b9b062f756448-- From unknown Fri Jun 20 07:13:55 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76629: NS click events don't select right window Resent-From: Stefan Kangas Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 03 Mar 2025 19:46:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76629 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Daniel Colascione Cc: Mattias =?UTF-8?Q?Engdeg=C3=A5rd?= , 76629@debbugs.gnu.org Received: via spool by 76629-submit@debbugs.gnu.org id=B76629.174103115927746 (code B ref 76629); Mon, 03 Mar 2025 19:46:04 +0000 Received: (at 76629) by debbugs.gnu.org; 3 Mar 2025 19:45:59 +0000 Received: from localhost ([127.0.0.1]:52168 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tpBjj-0007DS-FP for submit@debbugs.gnu.org; Mon, 03 Mar 2025 14:45:59 -0500 Received: from mail-ed1-x52f.google.com ([2a00:1450:4864:20::52f]:49241) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tpBje-0007Cd-MU for 76629@debbugs.gnu.org; Mon, 03 Mar 2025 14:45:55 -0500 Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-5e53b3fa7daso2663334a12.2 for <76629@debbugs.gnu.org>; Mon, 03 Mar 2025 11:45:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741031148; x=1741635948; darn=debbugs.gnu.org; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:from:to:cc:subject:date:message-id:reply-to; bh=XaMJ28P3GSzzm8qTDhXsyEnpgNGnzRdWVsR/rv5B+DU=; b=E2EGjWFPFpcaeZSuZGiFsXonkmYr08UztUkWgpEk5WcwzHVb622qiG6mtZ+yUTDRdz hlNf/G7cKfGOdZHEBdJoAb1XJC4SCeldSAb64jxPk/8X85O9tkC0pEthC0zwDKulE3Fm 70v7mTg6mr3eJ0WFjDAgnNnJ23PoS83lu7HQV2Qk9QqBQH+OMGpI6drQ9uvQXJTU+PVl xiI2+L/BnN5ncQeOGN7IENr02xWzr/n36jb+Fh0fj+44ULLM5grGCBrxDRdB+5ZleNw2 jMRDSa1e44bmCcpTuB61UC1niQfvHoF/LaEmneKhH3neJ34JaaJTi3EKsJux9NnZI2/L uM7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741031148; x=1741635948; h=cc:to:subject:message-id:date:mime-version:references:in-reply-to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=XaMJ28P3GSzzm8qTDhXsyEnpgNGnzRdWVsR/rv5B+DU=; b=ruyMH/4efJI+VE0ajWbzOx9lQkwDuDpl1FW9UVg8jz1pfJh3uMH1R/6vdOvVsTucUp U40fvu50siT+ub+H7/aADccOBshs0pu8lL1s+7hyOltUyhCS8MW0uJbhgBpJed+q4AmH 59QFJMrHMSgnv6zWenkJ6PPh1dfROFiYKAXN0CL4NtzkpS1HECvEN1UM3nAWgOwoLuie n44oy4BnOi3IjF2RFUPMQLbOTYByGnTQyd+d+8aaRuPQ7TLnTqt8cCJxgvBVRhgThPVC 5c3NLMJHjR6Q3+6DAkWOf2aPlpeCHrH4h/dirZoqE7/jRQHuOrJ8UECQR2xmyEqf5nqr j71w== X-Forwarded-Encrypted: i=1; AJvYcCXD5xcA8slN8YKqlkfNp68OQoG4thsgIfYoGLVASAw5JiMnQO6NyU6AYGAU0QJazC8U4/U2Yg==@debbugs.gnu.org X-Gm-Message-State: AOJu0Yx8MXVgE3pwCJ/GwnYwugsid8Ol92D+Mo17MpE3uk0nARNulIhm JMGV0rvtf+rXRAOMf2+uaEv2j/OsLGGzicSDm4PghXKf8Y5b4JrHKFPtmbJnmirS+4ZtfgoMyvk WouH5vZamZuNtbCgenCKKtyHP+5M= X-Gm-Gg: ASbGnct+CP2IBxkl9RATr6r6ZannTSKEwb2yF6WiMbG9l4y5PPZgC8wWxexZKt+Ydfw 7+edalojvycayjOwL8sTuXigcv6WGg1mliYUCDSB2yHBct3b+2euTa6W4DWTNJBAT+hq4kuoFbo X++ptgtpSAgtigyGXlGvW8RemLdQ== X-Google-Smtp-Source: AGHT+IHE4eOmUltCquvUfjDIDW/EltZUNFddX32Wh/EACgo+EfgaSAtcvKtKoISb3DpeQe+sICJ7ORCPPOzU9TSdK+M= X-Received: by 2002:a05:6402:3512:b0:5e4:d13b:e65 with SMTP id 4fb4d7f45d1cf-5e4d6af15damr15419631a12.9.1741031147893; Mon, 03 Mar 2025 11:45:47 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Mon, 3 Mar 2025 11:45:47 -0800 From: Stefan Kangas In-Reply-To: References: <910CEF09-1174-42EE-8686-9BCF7EB0DFC2@gmail.com> MIME-Version: 1.0 Date: Mon, 3 Mar 2025 11:45:47 -0800 X-Gm-Features: AQ5f1JoB1z5pg-8FrX-fUJITYL1nUphn-bH8iHPsZFZ4IspzF6avNHqv-blkwkA Message-ID: Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Daniel Colascione writes: > On March 3, 2025 11:33:00 AM PST, Stefan Kangas wrote: >>Daniel Colascione writes: >> >>> The situation seems a bit more nuanced than a choice of "on" or "off". >>> I think the concept is that you're supposed to enable click-through for >>> "utility" items (like toolbar buttons) and for document *selection*, but >>> require a second click for interaction with documents. >> >>[...] >> >>> That's a lot of work, so I'd rather just have an on/off toggle right now >>> with a todo. I'd prefer to default the setting to on, since Emacs is >>> more convenient to use this way. >> >>Thanks for taking the time to look into this properly. >> >>If no one will volunteer to implement the more involved version, I agree >>that a defcustom is the best we can do for now. > > We can make a menu defoption with 'always and 'never choices for click through, then add an 'auto option later. SGTM.