From unknown Sat Jun 14 19:34:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76051: 29.4; Incorrect workarea entry in display-monitor-attributes-list on macOS Resent-From: Anders Lindgren Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 04 Feb 2025 13:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 76051 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 76051@debbugs.gnu.org X-Debbugs-Original-To: Emacs bug reports and feature requests Received: via spool by submit@debbugs.gnu.org id=B.173867655411131 (code B ref -1); Tue, 04 Feb 2025 13:43:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Feb 2025 13:42:34 +0000 Received: from localhost ([127.0.0.1]:43184 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tfJCE-0002tS-9I for submit@debbugs.gnu.org; Tue, 04 Feb 2025 08:42:34 -0500 Received: from lists.gnu.org ([2001:470:142::17]:60668) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tfJCA-0002tB-UH for submit@debbugs.gnu.org; Tue, 04 Feb 2025 08:42:32 -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 1tfJC4-0005Ui-91 for bug-gnu-emacs@gnu.org; Tue, 04 Feb 2025 08:42:24 -0500 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tfJC2-00028h-IZ for bug-gnu-emacs@gnu.org; Tue, 04 Feb 2025 08:42:23 -0500 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5d9837f201aso12330712a12.0 for ; Tue, 04 Feb 2025 05:42:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738676540; x=1739281340; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=Affufy7vWYBe3ekpmG2EMv4e68gSkuMuHaJsIzJ4Ul0=; b=JxlKwtVol4Tjq4VVnKTV4kyuLvUmPPR1+WDqc9OMPGrjDVPrLzrDu0FdLkKgJVMG9g jeHuJLSxJ+dY7hFgEoSMBU5/EM5l0JmOlW5VuZdXSZ8uyuUiHCuJH9jqMK+3VkcbC9Ma 31GaloxlB1P+3AzZVKG3P6luHdwxKt9S2sz5uwtmYKRg1iTUXgCF6Ql6KGHh6B5XYO9R 1RGU81sOvYXwvS+gppV/M21yYYShRO7VnmqAEWjGfNjB9WLa3P5Na0cCT713lvXc9u73 VnrNfr5eZQlYTNmN9gGnHkFTpGAiWEJyPcRNC4IXWrBvZRTn5hWpfManIawNah6dr/7E l+ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738676540; x=1739281340; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Affufy7vWYBe3ekpmG2EMv4e68gSkuMuHaJsIzJ4Ul0=; b=IWaFypecU08fDRC223mI0epbG83qrJJrjp82YDTcTL7yRHgd8IY76ZA95OzGUkXBi2 HkdUkWhCvOQztyM57ta0hu2FD4fXkZ3FrKRUAbI9mkQ6Qs9GGjykpcfMjzp44A6N5+pb jg1+g2ifbu47JiR/X1gSo8SRiO5wICd8OSVoZQtJlJ2E0wgk3UJMEFjegzhmAhFqo7XE o3aOoqv9gDbyQj6k4HB4xRRtS+T9dagY1/5KUL9cK0EuvPhwrbNY+x8X4KiDPW+BEKh2 KmoJxdAJOpW36aIXAp9IcQFgDLSAZNHQY/ULcc4BILfggMQBDpDovfBOXHG6KzAS9Rwo KIUw== X-Gm-Message-State: AOJu0YzMeBa5O89fbBEcuK0C7mvHKBgiaUFoVO0JrWCd06Bf3fBIQGf6 hqvYQ8B99RQ6vuW3xeFPxPkdcz2y3kap4OqDjai9L9kegZKq8ndS60mS0YE2zQk9ei1KRKG6fhT XPRh2q1OwJtZ5OzLXPFy0xmzE2YTiKnKh X-Gm-Gg: ASbGncsBOOoUSb6HnO7dUOmXwVkTnWd5MHyjQDl2jcGBe1kg1LADiwM6B6JXdW86Bnr QU4FGJL562uVD3MoXDOPhwIvAwqrnOVds4iVpKu0BthHJlNxPRoeCqoXlW2MiXnnSUjYmcHdM6H zfOgWeCJs3XM4Oa8P/Iwwnx0on2IS7mMs= X-Google-Smtp-Source: AGHT+IFHJTRGcFQZhfBNYo/uct2yb6j6s8qy0cUnZ5UC9GgNcxtuUgvGFdQ1m/DYoVZUQBQfCzLoh+TFcGoM11r61t0= X-Received: by 2002:a05:6402:1cc1:b0:5d3:eb50:4e33 with SMTP id 4fb4d7f45d1cf-5dcc14a5279mr2891971a12.5.1738676539141; Tue, 04 Feb 2025 05:42:19 -0800 (PST) MIME-Version: 1.0 From: Anders Lindgren Date: Tue, 4 Feb 2025 14:42:07 +0100 X-Gm-Features: AWEUYZnatKTzN1p1EWgr5Yz4SDWNA2NlQewZwsR-dgmOVOGmBbwcrgvloQmzVaA Message-ID: Content-Type: multipart/alternative; boundary="0000000000007ebe07062d512dd6" Received-SPF: pass client-ip=2a00:1450:4864:20::529; envelope-from=andlind@gmail.com; helo=mail-ed1-x529.google.com 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.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: -0.0 (/) --0000000000007ebe07062d512dd6 Content-Type: text/plain; charset="UTF-8" Hi! I think the `display-monitor-attributes-list' function returns an incorrect `workarea' entry on macOS. Concretely, I have a laptop with an external monitor connected. The external monitor is placed above to the left. The `display-monitor-attributes-list' function returns the following (abbreviated): (((geometry 0 0 1728 1117) (workarea 0 38 1728 1079) ... ((geometry -2560 -723 2560 1440) (workarea -2560 -638 2560 1330) ...)) The first member in the list describes the laptop monitor (the primary monitor), the second the external monitor. The first two numbers, `X' and `Y', in each entry describe the position of the top left corner of the area, relative to the top left corner of the primary monitor. The number that I think is incorrect is the `Y' of the workarea of the external monitor, which is "-638". It indicates that there is a (723-638 = 85 pixel area on top of the screen which is outside the work area.) However, in reality, there is a 25 pixel menu bar which should be outside the work area. The 85 probably comes from the macOS dock, which is placed in the lower part of the screen. The height field correctly includes both the menu bar and the dock. I've tested this on Emacs 29.4 and 30.0.93 on macOS 15.1. -- Anders Lindgren (Long time Emacs contributor and former NS maintainer) --0000000000007ebe07062d512dd6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi!

I think the `display-monitor-attributes-list= 9; function returns an incorrect `workarea' entry on macOS.

Conc= retely, I have a laptop with an external monitor connected. The external mo= nitor is placed above to the left.

The `display-monitor-attributes-l= ist' function returns the following (abbreviated):

=C2=A0 =C2=A0= (((geometry 0 0 1728 1117) (workarea 0 38 1728 1079) ...
=C2=A0 =C2=A0 = =C2=A0((geometry -2560 -723 2560 1440) (workarea -2560 -638 2560 1330) ...)= )

The first member in the list describes the laptop monitor (the pri= mary monitor), the second the external monitor.

The first two number= s, `X' and `Y', in each entry describe the position of the top left= corner of the area, relative to the top left corner of the primary monitor= .

The number that I think is incorrect is the `Y' of the workare= a of the external monitor, which is "-638". It indicates that the= re is a (723-638 =3D 85 pixel area on top of the screen which is outside th= e work area.)

However, in reality, there is a 25 pixel menu bar whic= h should be outside the work area. The 85 probably comes from the macOS doc= k, which is placed in the lower part of the screen.

The height field= correctly includes both the menu bar and the dock.

I've tested = this on Emacs 29.4 and 30.0.93 on macOS 15.1.

=C2=A0 =C2=A0 -- Ander= s Lindgren (Long time Emacs contributor and former NS maintainer)
--0000000000007ebe07062d512dd6-- From unknown Sat Jun 14 19:34:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76051: 29.4; Incorrect workarea entry in display-monitor-attributes-list on macOS Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 08 Feb 2025 11:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76051 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Anders Lindgren , Po Lu , Alan Third Cc: 76051@debbugs.gnu.org Received: via spool by 76051-submit@debbugs.gnu.org id=B76051.17390127838333 (code B ref 76051); Sat, 08 Feb 2025 11:07:02 +0000 Received: (at 76051) by debbugs.gnu.org; 8 Feb 2025 11:06:23 +0000 Received: from localhost ([127.0.0.1]:38816 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tgifH-0002AJ-8k for submit@debbugs.gnu.org; Sat, 08 Feb 2025 06:06:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:40010) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tgifF-0002A0-BN for 76051@debbugs.gnu.org; Sat, 08 Feb 2025 06:06:21 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tgif7-0004qQ-LE; Sat, 08 Feb 2025 06:06:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=s9vBax3YSNSz75lgyBTSCdotTs43KMBOfXUN4+MTpVU=; b=rCHB57A34ptG M5tIzct/5gbceV+nkOUlXGRbyuhVZ1vx4V/pUVPVD+lX72BXhSsvzzTyEkWhJSJUpvFyND0YIdi4M KNFwyT80TfEEvphGdLEuOWgsgOvZG/vVgZ9O/kCt5fvoB9SJmlXOg1pflEu2DT60XTBXnId2XSekz wQPSkyAyx00yK4i6LXGahj+8mhVbWqwHf31pd58c/7lqDVAtCXS+c+/nekPNW4bRZS+ZTs+UgRBKv fhhAqg87QVH+IB8Or50mzSklXh7/suBDCIehkXZLUMBKKi1tkNK//+pHPfPV5yQIfLjta5Uh689sO /1nnMlz+b6us+DjHahI+mQ==; Date: Sat, 08 Feb 2025 13:05:30 +0200 Message-Id: <86a5aw3ddx.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Anders Lindgren on Tue, 4 Feb 2025 14:42:07 +0100) References: X-Spam-Score: -2.3 (--) 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: -3.3 (---) > From: Anders Lindgren > Date: Tue, 4 Feb 2025 14:42:07 +0100 > > I think the `display-monitor-attributes-list' function returns an incorrect `workarea' entry on macOS. > > Concretely, I have a laptop with an external monitor connected. The external monitor is placed above to the > left. > > The `display-monitor-attributes-list' function returns the following (abbreviated): > > (((geometry 0 0 1728 1117) (workarea 0 38 1728 1079) ... > ((geometry -2560 -723 2560 1440) (workarea -2560 -638 2560 1330) ...)) > > The first member in the list describes the laptop monitor (the primary monitor), the second the external > monitor. > > The first two numbers, `X' and `Y', in each entry describe the position of the top left corner of the area, > relative to the top left corner of the primary monitor. > > The number that I think is incorrect is the `Y' of the workarea of the external monitor, which is "-638". It > indicates that there is a (723-638 = 85 pixel area on top of the screen which is outside the work area.) > > However, in reality, there is a 25 pixel menu bar which should be outside the work area. The 85 probably > comes from the macOS dock, which is placed in the lower part of the screen. > > The height field correctly includes both the menu bar and the dock. > > I've tested this on Emacs 29.4 and 30.0.93 on macOS 15.1. Thanks. Maybe Po Lu and Alan (CC'ed) could help here. From unknown Sat Jun 14 19:34:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76051: 29.4; Incorrect workarea entry in display-monitor-attributes-list on macOS Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 May 2025 19:35:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76051 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Anders Lindgren Cc: 76051@debbugs.gnu.org X-Debbugs-Original-Cc: Emacs bug reports and feature requests Received: via spool by submit@debbugs.gnu.org id=B.17482880947816 (code B ref -1); Mon, 26 May 2025 19:35:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 May 2025 19:34:54 +0000 Received: from localhost ([127.0.0.1]:60122 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uJdb3-00021y-BA for submit@debbugs.gnu.org; Mon, 26 May 2025 15:34:53 -0400 Received: from lists.gnu.org ([2001:470:142::17]:51992) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uJdaw-00020u-1x for submit@debbugs.gnu.org; Mon, 26 May 2025 15:34:50 -0400 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 1uJdal-0008VZ-NT for bug-gnu-emacs@gnu.org; Mon, 26 May 2025 15:34:35 -0400 Received: from dane.soverin.net ([185.233.34.158]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uJdai-0002Vx-BV for bug-gnu-emacs@gnu.org; Mon, 26 May 2025 15:34:34 -0400 Received: from smtp.soverin.net (c04smtp-lb01.int.sover.in [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dane.soverin.net (Postfix) with ESMTPS id 4b5mDM13P2zygF; Mon, 26 May 2025 19:34:27 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.100]) by soverin.net (Postfix) with ESMTPSA id 4b5mDL5VNhzNh; Mon, 26 May 2025 19:34:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1748288067; bh=Lr9X0tW84WrIShsfI0yyIUK8xD8qqrtnd2kI0fw1PXk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=G5QGtFwdQ99YPjr+E3LftkmE+wuaj+sG4qQNrhlzki7uqDuaKyTRwWf3sb7AMimT0 YKGRkhh0QUZx/En5ahCek0rlRvE7ghxLmLeWxuVbbnsCeHeqDw8ARkYG+gyi5+6eUP RXJxuqFCr0e7IK91KLcI6WauYEzrePBrHnjgO0ZkRm5S3uVJtxvJPmZE42oJZsPz8Z 1CM+Kd2Ibbo/pKkpkHYL+y5FxUkhfqV7ICPb/3ZCzFPNhY/ZcnvYgZfCNzWz+NJESU /yw+gV5GKTzqzYnGy1Exrm2bQH0i2/jufTR6Y2c6oEa2Dy2GpjOrCOZpF7/0p9KFaA kKG9X7DAJ+f9Q== X-CM-Envelope: MS4xfJIH0Xd9QiYyc/VPU6WPRyymsix5yNAps/6SxmwYjmvvTxxp/ABpIjT9UEXBlcfXsFaAflBbR7Y5pWbRHugXDx5p/uHQiltsbnxp+qitADzARj4gj+5Q rhESPg1piguERKqgrq5EG871JIaxKA7ZsN0PDX65QRyClQTnHgmQxUx/g01TaZlWeKbymxZVHLKG4rPa0iD8tY2d5Y7WQ1JHsdzDfDCiqJxQzRc6qcj7GST5 ysTlg9Y0JwCsa2G2O4clG8EoczYAJHhR2YpyXDQUVxU= X-CM-Analysis: v=2.4 cv=UsCZN/wB c=1 sm=1 tr=0 ts=6834c242 a=LgqaKf46s638raT381imug==:617 a=xqWC_Br6kY4A:10 a=sMHh_3vpHP_T89BvBlsA:9 a=CjuIK1q_8ugA:10 a=hIj89exaAAAA:8 a=lMqMxG2-EyG6yLVBDBQA:9 a=lS9wXHQM5UdnNJ4u63Ry:22 Date: Mon, 26 May 2025 20:34:25 +0100 From: Alan Third Message-ID: Mail-Followup-To: Alan Third , Anders Lindgren , Emacs bug reports and feature requests References: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="QWT2DoCw1WRnE4vf" Content-Disposition: inline In-Reply-To: X-Spampanel-Class: ham Received-SPF: pass client-ip=185.233.34.158; envelope-from=alan@idiocy.org; helo=dane.soverin.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.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: -0.0 (/) --QWT2DoCw1WRnE4vf Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Feb 04, 2025 at 02:42:07PM +0100, Anders Lindgren wrote: > Hi! Hi Anders, > I think the `display-monitor-attributes-list' function returns an incorrect > `workarea' entry on macOS. > > Concretely, I have a laptop with an external monitor connected. The > external monitor is placed above to the left. > > The `display-monitor-attributes-list' function returns the following > (abbreviated): > > (((geometry 0 0 1728 1117) (workarea 0 38 1728 1079) ... > ((geometry -2560 -723 2560 1440) (workarea -2560 -638 2560 1330) ...)) > > The first member in the list describes the laptop monitor (the primary > monitor), the second the external monitor. > > The first two numbers, `X' and `Y', in each entry describe the position of > the top left corner of the area, relative to the top left corner of the > primary monitor. > > The number that I think is incorrect is the `Y' of the workarea of the > external monitor, which is "-638". It indicates that there is a (723-638 = > 85 pixel area on top of the screen which is outside the work area.) > > However, in reality, there is a 25 pixel menu bar which should be outside > the work area. The 85 probably comes from the macOS dock, which is placed > in the lower part of the screen. > > The height field correctly includes both the menu bar and the dock. > > I've tested this on Emacs 29.4 and 30.0.93 on macOS 15.1. I'm pretty sure the arithmetic was wrong, and it was treating external monitors differently from the primary screen for some reason I couldn't work out. Can you check if the attached looks right to you? I can't check as I don't have an external monitor here. -- Alan Third --QWT2DoCw1WRnE4vf Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="0001-Fix-NS-port-screen-geometry-report-bug-76051.patch" >From a5c1edd911322805cf9a2fc9cb08aac98d05c2f6 Mon Sep 17 00:00:00 2001 From: Alan Third Date: Mon, 26 May 2025 20:27:39 +0100 Subject: [PATCH] Fix NS port screen geometry report (bug#76051) * src/nsfns.m (Fns_display_monitor_attributes_list): Fix the arithmetic to calculate the origin of the visible frame. --- src/nsfns.m | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/src/nsfns.m b/src/nsfns.m index b1ed0eff58a..02dc1ea359c 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -2786,41 +2786,30 @@ Frames are listed from topmost (first) to bottommost (last). */) struct MonitorInfo *m = &monitors[i]; NSRect fr = [s frame]; NSRect vfr = [s visibleFrame]; - short y, vy; #ifdef NS_IMPL_COCOA NSDictionary *dict = [s deviceDescription]; NSNumber *nid = [dict objectForKey:@"NSScreenNumber"]; CGDirectDisplayID did = [nid unsignedIntValue]; #endif + + /* The primary display is always the first in the array. */ if (i == 0) - { - primary_display_height = fr.size.height; - y = (short) fr.origin.y; - vy = (short) vfr.origin.y; - } - else - { - /* Flip y coordinate as NS screen coordinates originate from - the bottom. */ - y = (short) (primary_display_height - fr.size.height - fr.origin.y); - vy = (short) (primary_display_height - - vfr.size.height - vfr.origin.y); - } + primary_display_height = fr.size.height; + + /* Flip y coordinate as NS screen coordinates originate from + the bottom. */ m->geom.x = (short) fr.origin.x; - m->geom.y = y; + m->geom.y = (short) (primary_display_height + - fr.size.height - fr.origin.y); m->geom.width = (unsigned short) fr.size.width; m->geom.height = (unsigned short) fr.size.height; + /* The work area excludes the menu bar and the dock. */ m->work.x = (short) vfr.origin.x; - /* y is flipped on NS, so vy - y are pixels missing at the - bottom, and fr.size.height - vfr.size.height are pixels - missing in total. - - Pixels missing at top are fr.size.height - vfr.size.height - - vy + y. work.y is then pixels missing at top + y. */ - m->work.y = (short) (fr.size.height - vfr.size.height) - vy + y + y; + m->work.y = (short) (primary_display_height - + vfr.size.height - vfr.origin.y); m->work.width = (unsigned short) vfr.size.width; m->work.height = (unsigned short) vfr.size.height; -- 2.41.0 --QWT2DoCw1WRnE4vf-- From unknown Sat Jun 14 19:34:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76051: 29.4; Incorrect workarea entry in display-monitor-attributes-list on macOS Resent-From: Ship Mints Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 May 2025 19:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76051 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: alan@idiocy.org, andlind@gmail.com, 76051@debbugs.gnu.org X-Debbugs-Original-To: Alan Third , Anders Lindgren , Emacs bug reports and feature requests X-Debbugs-Original-Cc: 76051@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17482883539026 (code B ref -1); Mon, 26 May 2025 19:40:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 May 2025 19:39:13 +0000 Received: from localhost ([127.0.0.1]:60159 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uJdfE-0002LP-Ih for submit@debbugs.gnu.org; Mon, 26 May 2025 15:39:13 -0400 Received: from lists.gnu.org ([2001:470:142::17]:42710) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uJdfB-0002Ko-5z for submit@debbugs.gnu.org; Mon, 26 May 2025 15:39:09 -0400 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 1uJdf4-0000XX-DP for bug-gnu-emacs@gnu.org; Mon, 26 May 2025 15:39:02 -0400 Received: from mail-vk1-xa2e.google.com ([2607:f8b0:4864:20::a2e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uJdf2-0003EJ-7g for bug-gnu-emacs@gnu.org; Mon, 26 May 2025 15:39:01 -0400 Received: by mail-vk1-xa2e.google.com with SMTP id 71dfb90a1353d-528ce9731dbso545760e0c.0 for ; Mon, 26 May 2025 12:38:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1748288338; x=1748893138; darn=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=g8uH0bm/NbHm5X5beJJ/12kIEsFPQDGt5N59ugq1Fdk=; b=SGSBQ9OzLKw5br2DOptDnbMce6sroeyR2j2H5Jp5IpzOW7ewthJ6HvknfoQXon319C rTaW/ITttj4huo0QxYucDsm6URrskjWfD/Oucz0c2gc7jA2JGgK3Vz/34ePGLQERlYdD E0uQ9THA1bbc/nar8WeqZ539V8YLDhY+/MH+ltEQu9lkcO8fEVyYHPqFHyYPzMAyDhYE yVC4/kTwXIEv5JaaaTyNqTCyIJ/PZi02KDlCIOVg/QFu5cPB0SLh9sZdYoD7fNJZiFCq pttDDBwaWHG737GDmqx+f2Z+a2M+H9aX/5HXO/HcQYGL66MpaLs4Q/7IZdDu3pBV5Clq osGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748288338; x=1748893138; 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=g8uH0bm/NbHm5X5beJJ/12kIEsFPQDGt5N59ugq1Fdk=; b=d5u8Fkj9wFROzD0XDRfYlrS1cpSUVMtY0QLNMcz7871wq0Ml1TbvmfZET4uZnK3o9r hUH4Nk735t6urKOmeEogzjxq+kCN59XZA9f438KViM57QQOOENnrNBlaF0J+1fJ/kWwb BzF5lEmH/dB8pnxp4tQV25mIo6rctYXTPb1QSNsit98qf7LgJ6EAIEButDw3z8AaqrAO b5ag6f0tQbZwIHbhK25aA3jVOO3Az+q8/migYKQZpogyRBQNn3hxnMAcwmws9Ccii7+4 Md1SBdYrm3ao+g0syGAMNaumSvrdODhkvyV1MRJuPXTPWn5rFDJhXJuk8tvd/FW/Vwzj jo4w== X-Forwarded-Encrypted: i=1; AJvYcCUAKyBoih2vH1PZ3Xhuic/BEz7DkPxVK85Ko9TIIdbe/ylFI9ZEpuPaasqvuHTyObVHmGjQYXoTOx9JCYB9@gnu.org X-Gm-Message-State: AOJu0Yxxax+o8s36BKcth2dd+y4VYtimsFSSGZHnCnf6SHHhvufszFq9 WXkYuQncX2Zsp2EEz41ziX2bRUZXMeDoPr7e8/DO9UINW1BLehvu9UQzvNPjGaUg0L/pfmHf76G FWReIaAR54i+Pz4s/FbMxvlvpQYj3sTSx3eXJ X-Gm-Gg: ASbGncvJfqxSs/vWRj3O27NKBwrjAi8FG62DLUopC7bbVlbdjqbhZOGavKAIw+hahcp CAbgZNwtjbyzDk5HDnJZhZXUsyyxtvYDJwgLUSLpmZV5xjGVGcFgeR5m+GDP8TaEaHvB0+3A9Eu DDk1BhgaetOtyGVyXV6e85yJBsQt44g51YAQA= X-Google-Smtp-Source: AGHT+IGUMoq5FOnYuu9MmxI6gTVqvX1l3odv4xP+InnymYxb4KJk/hrt+ri1YzW67sVJ+e5I8JzjI8oCHLm5JUSqDGE= X-Received: by 2002:a05:6122:2207:b0:529:373:fcb7 with SMTP id 71dfb90a1353d-52f2c5a563bmr7568170e0c.10.1748288338056; Mon, 26 May 2025 12:38:58 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ship Mints Date: Mon, 26 May 2025 15:38:46 -0400 X-Gm-Features: AX0GCFsdMHMb4cH0t31s3B2lyoV-vIyLx4vZbzFhT28zQ-FQCuYW-XypVfKIFoc Message-ID: Content-Type: multipart/alternative; boundary="0000000000005add7506360f19d8" Received-SPF: pass client-ip=2607:f8b0:4864:20::a2e; envelope-from=shipmints@gmail.com; helo=mail-vk1-xa2e.google.com 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.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: -0.0 (/) --0000000000005add7506360f19d8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, May 26, 2025 at 3:35=E2=80=AFPM Alan Third wrote: > On Tue, Feb 04, 2025 at 02:42:07PM +0100, Anders Lindgren wrote: > > Hi! > > Hi Anders, > > > I think the `display-monitor-attributes-list' function returns an > incorrect > > `workarea' entry on macOS. > > > > Concretely, I have a laptop with an external monitor connected. The > > external monitor is placed above to the left. > > > > The `display-monitor-attributes-list' function returns the following > > (abbreviated): > > > > (((geometry 0 0 1728 1117) (workarea 0 38 1728 1079) ... > > ((geometry -2560 -723 2560 1440) (workarea -2560 -638 2560 1330) > ...)) > > > > The first member in the list describes the laptop monitor (the primary > > monitor), the second the external monitor. > > > > The first two numbers, `X' and `Y', in each entry describe the position > of > > the top left corner of the area, relative to the top left corner of the > > primary monitor. > > > > The number that I think is incorrect is the `Y' of the workarea of the > > external monitor, which is "-638". It indicates that there is a (723-63= 8 > =3D > > 85 pixel area on top of the screen which is outside the work area.) > > > > However, in reality, there is a 25 pixel menu bar which should be outsi= de > > the work area. The 85 probably comes from the macOS dock, which is plac= ed > > in the lower part of the screen. > > > > The height field correctly includes both the menu bar and the dock. > > > > I've tested this on Emacs 29.4 and 30.0.93 on macOS 15.1. > > I'm pretty sure the arithmetic was wrong, and it was treating external > monitors differently from the primary screen for some reason I > couldn't work out. > > Can you check if the attached looks right to you? I can't check as I > don't have an external monitor here. > Also see the following bug which has a working patch: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D76691 --0000000000005add7506360f19d8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
= On Mon, May 26, 2025 at 3:35=E2=80=AFPM Alan Third <alan@idiocy.org> wrote:
On Tue, Feb 04, 2025 at 02:42:07PM +0100, Anders Lindgren wro= te:
> Hi!

Hi Anders,

> I think the `display-monitor-attributes-list' function returns an = incorrect
> `workarea' entry on macOS.
>
> Concretely, I have a laptop with an external monitor connected. The > external monitor is placed above to the left.
>
> The `display-monitor-attributes-list' function returns the followi= ng
> (abbreviated):
>
>=C2=A0 =C2=A0 =C2=A0(((geometry 0 0 1728 1117) (workarea 0 38 1728 1079= ) ...
>=C2=A0 =C2=A0 =C2=A0 ((geometry -2560 -723 2560 1440) (workarea -2560 -= 638 2560 1330) ...))
>
> The first member in the list describes the laptop monitor (the primary=
> monitor), the second the external monitor.
>
> The first two numbers, `X' and `Y', in each entry describe the= position of
> the top left corner of the area, relative to the top left corner of th= e
> primary monitor.
>
> The number that I think is incorrect is the `Y' of the workarea of= the
> external monitor, which is "-638". It indicates that there i= s a (723-638 =3D
> 85 pixel area on top of the screen which is outside the work area.) >
> However, in reality, there is a 25 pixel menu bar which should be outs= ide
> the work area. The 85 probably comes from the macOS dock, which is pla= ced
> in the lower part of the screen.
>
> The height field correctly includes both the menu bar and the dock. >
> I've tested this on Emacs 29.4 and 30.0.93 on macOS 15.1.

I'm pretty sure the arithmetic was wrong, and it was treating external<= br> monitors differently from the primary screen for some reason I
couldn't work out.

Can you check if the attached looks right to you? I can't check as I don't have an external monitor here.

Also see= the following bug which has a working patch:

--0000000000005add7506360f19d8-- From unknown Sat Jun 14 19:34:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76051: 29.4; Incorrect workarea entry in display-monitor-attributes-list on macOS Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 May 2025 20:24:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76051 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Ship Mints Cc: 76051@debbugs.gnu.org, andlind@gmail.com X-Debbugs-Original-Cc: Emacs bug reports and feature requests , 76051@debbugs.gnu.org, Anders Lindgren Received: via spool by 76051-submit@debbugs.gnu.org id=B76051.174829103721227 (code B ref 76051); Mon, 26 May 2025 20:24:01 +0000 Received: (at 76051) by debbugs.gnu.org; 26 May 2025 20:23:57 +0000 Received: from localhost ([127.0.0.1]:60473 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uJeMW-0005WF-MK for submit@debbugs.gnu.org; Mon, 26 May 2025 16:23:57 -0400 Received: from dane.soverin.net ([2a10:de80:1:4091:b9e9:221f:0:1]:43219) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uJeMU-0005Vf-2Z for 76051@debbugs.gnu.org; Mon, 26 May 2025 16:23:54 -0400 Received: from smtp.soverin.net (c04smtp-lb01.int.sover.in [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dane.soverin.net (Postfix) with ESMTPS id 4b5nKH6L5wz2xPw; Mon, 26 May 2025 20:23:47 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.99]) by soverin.net (Postfix) with ESMTPSA id 4b5nKH1WMYz3Z; Mon, 26 May 2025 20:23:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1748291027; bh=p+VG0SsBzK5iMXmyR3JDi+THJrLcwvE/gGUKHxyJbzA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=F/KvG78oRwY2L760siqRt9/xV3Vx3WOC1vhK0Mt1NzH8V4g6UW/XNuI6Fvh4rk/J9 2Ybi7GRjm/OzForzlPyPJQXZ9p7QNMOxLoxXiG8zw4KiGMRVodqi9GbILWQHOWbgtG f36em9iSgy4sWLQsWUqctahQNpC2+hEXzGUnKJiSQ2wEbXodU+h2ymepqgGZceMP+F AK6mmia/9qDVlxp1M8R/dZdNSaVeyyWUyI9Fp/c2RHopb+pwyF9IjwmeQLvX6wDSk9 npCTh3F17Lt1GZdCCfu24qiwi4zU8N3aaggrhh850Ut19k5BPLPs7zq5GtVcv/KtHR 7M0kraNp52nQw== X-CM-Envelope: MS4xfJNaQ4Svuwx1bLrzZeTqreqePPnz1b9b8NSL4OTZj9fdfRWys61wfHTjlAqa93lK/kV+MJSGXulKFmLIM109A2gUXVzPCjCGW5p9QBuOochF1rUCUWPq q9hsOUYR89ULG0E+MTVyrR6+Pk+YoJIotgQeoQchEbIB4vU7wcFzOwDTU03TDDGAI5cypcLF8r7B1jXXdf0+0ko5ilLgmhBa8y3YgWSCfwqutIOj7g5LJte0 bUWfZarHhMf9WxTLu/7KCPrKKj+eA+dq+GfydtMu/g99OCPmALvFFl9hM1hh5aAvLFtibYH73nvkI1qSBG/z6Z2VVt1E3/yYV/9pGomMKEQ= X-CM-Analysis: v=2.4 cv=I7afRMgg c=1 sm=1 tr=0 ts=6834cdd3 a=OyVWedPT42wokZbSTOH/lw==:617 a=xqWC_Br6kY4A:10 a=IkcTkHD0fZMA:10 a=mDV3o1hIAAAA:8 a=hIj89exaAAAA:8 a=Rs-pC3OgwP-hJ01uosMA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=lS9wXHQM5UdnNJ4u63Ry:22 Date: Mon, 26 May 2025 21:23:45 +0100 From: Alan Third Message-ID: Mail-Followup-To: Alan Third , Ship Mints , Anders Lindgren , Emacs bug reports and feature requests , 76051@debbugs.gnu.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spampanel-Class: ham X-Spam-Score: -0.7 (/) 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.7 (-) On Mon, May 26, 2025 at 03:38:46PM -0400, Ship Mints wrote: > On Mon, May 26, 2025 at 3:35 PM Alan Third wrote: > > > I'm pretty sure the arithmetic was wrong, and it was treating external > > monitors differently from the primary screen for some reason I > > couldn't work out. > > > > Can you check if the attached looks right to you? I can't check as I > > don't have an external monitor here. > > > > Also see the following bug which has a working patch: > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=76691 Sorry, I think I'm being a bit dim but I can't see any patch there that fixes this particular problem. -- Alan Third From unknown Sat Jun 14 19:34:04 2025 X-Loop: help-debbugs@gnu.org Subject: bug#76051: 29.4; Incorrect workarea entry in display-monitor-attributes-list on macOS Resent-From: Ship Mints Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 26 May 2025 20:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 76051 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: alan@idiocy.org, shipmints@gmail.com, andlind@gmail.com, 76051@debbugs.gnu.org X-Debbugs-Original-To: Alan Third , Ship Mints , Anders Lindgren , Emacs bug reports and feature requests , 76051@debbugs.gnu.org Received: via spool by submit@debbugs.gnu.org id=B.174829132722652 (code B ref -1); Mon, 26 May 2025 20:29:02 +0000 Received: (at submit) by debbugs.gnu.org; 26 May 2025 20:28:47 +0000 Received: from localhost ([127.0.0.1]:60516 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uJeRC-0005t9-4X for submit@debbugs.gnu.org; Mon, 26 May 2025 16:28:46 -0400 Received: from lists.gnu.org ([2001:470:142::17]:44222) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uJeR8-0005sO-NK for submit@debbugs.gnu.org; Mon, 26 May 2025 16:28:44 -0400 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 1uJeR3-0001mM-3i for bug-gnu-emacs@gnu.org; Mon, 26 May 2025 16:28:37 -0400 Received: from mail-vs1-xe36.google.com ([2607:f8b0:4864:20::e36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uJeR1-000204-8a for bug-gnu-emacs@gnu.org; Mon, 26 May 2025 16:28:36 -0400 Received: by mail-vs1-xe36.google.com with SMTP id ada2fe7eead31-4e4564178bcso689232137.1 for ; Mon, 26 May 2025 13:28:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1748291314; x=1748896114; darn=gnu.org; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=j+m3nSOV/H9hD0m+aQgCrJYMYcQx80dk1vfM5wY8dTg=; b=j3nBo9Qvb8bcwN8Kf7P85xaC/Kcfdzie13yuYlmEWpG+Vmj51PTuAlEgKG8icKthiQ QdOJM9usGvU8Ygv67EEJ95ITL5eXlE4plZB6/PN9nbe69RMgjP5kbmH0oBdJznNtc0e3 ob736Mgt2qwIRQgNCGFCE50FUWHM2h2vDjfQEGLe5bG0UkMdl8vGRFs5i7PAbJTPC4B6 9Em6P3pXnseZZtrhc74M3VIcfIEZ9jfDLudZbCh4zISJWKMubdXhTLJSFALmlkMwOxxg pq9G0tnFqrbj00071/mg7E8tvwFX87jik9qvmgyGwHnGAQ0sshU+vOjN5tog/lPvpOlb Joug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748291314; x=1748896114; h=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=j+m3nSOV/H9hD0m+aQgCrJYMYcQx80dk1vfM5wY8dTg=; b=q/iq0O9BffPBmn8sYumCv2M0SSJ2Vd8wafDcAvYlIdUFVm67r+yXHpBEjHfcGp3yIB D2IZX8Veel/T5zgDpSdhGzTAqkO4ziptNra7HF2rM4fuAq40QGDMc5ZBjsZCW8wjCnqr +gY13/un9eCyzvsOKh4D8wc3qkTkfIJ0zjwFpo1nuzp8Psqg44EbkCyJ4RvvAfi4OI9o FxvXe/bc6rfpejngnumVijL3MGGxQQoL0sz0LEcIZtoeaumOAkvGD5GbwiGgtXLgnvQo LyeNRH2ri4Rh28VDhPdnZGNWNzjH9xe/4BwgDBdM2uCZiJQ7JO4k3h4/l+CUdkyj+L9D eBHw== X-Forwarded-Encrypted: i=1; AJvYcCV4px0FbMavD46JaXaRKiW/ZLE8wyTp/dwg7/ozvci7GFEPJNfqIe8wFR2VYjVB0oHou+/qIGm0l42HVRff@gnu.org X-Gm-Message-State: AOJu0YxUL8lheMjdmyyAvkEyPIVuai9h1pUpSJXTYBXeTzm9gfmMBTdr MaTnjaokWL+oBk6kn7ilCdSmlUFus/3raIksjGoIogDYZH6VLGDpgcUciBsHFxD54pmO5apKRA8 rpQJu1aTWgaSq2wkPRCHWRrIPhtB+j+9mKQ== X-Gm-Gg: ASbGnctAc2+IidUCZrayo0ueWz+y7F6wWUM64Bv8c9XlVjbOTPr1G2FsFgJlX7UIhO4 wDI6fRPCKTlC6wHuO0vuf2g5TaCU15Vu4Vuvg62ryTDNqD2mMkwyEjNFrBkGtRXPytBrxQ9C86j +EsoqjqoTJGJ926t/XVhMPA8DtrzDz1KYGbaR0+7h5slfTqA== X-Google-Smtp-Source: AGHT+IH7C+t+MFH++hcXw/Wo+dgj1/EDqOYo59skPkWpUnRTxTBq/pjPX802kgiqo7azz+IsWy3UlBWg/P3XHrrW5Ak= X-Received: by 2002:a05:6102:394d:b0:4e1:441d:be9f with SMTP id ada2fe7eead31-4e2f073a745mr9366806137.2.1748291314016; Mon, 26 May 2025 13:28:34 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ship Mints Date: Mon, 26 May 2025 16:28:22 -0400 X-Gm-Features: AX0GCFvg6B3TDealDjRQW69rhcEXJmhH1UiL3Y-PblAq2IkfkCJ31veaDeQZamk Message-ID: Content-Type: multipart/alternative; boundary="000000000000bc6a0706360fcac9" Received-SPF: pass client-ip=2607:f8b0:4864:20::e36; envelope-from=shipmints@gmail.com; helo=mail-vs1-xe36.google.com 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.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: -0.0 (/) --000000000000bc6a0706360fcac9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Mon, May 26, 2025 at 4:23=E2=80=AFPM Alan Third wrote: > On Mon, May 26, 2025 at 03:38:46PM -0400, Ship Mints wrote: > > On Mon, May 26, 2025 at 3:35=E2=80=AFPM Alan Third wr= ote: > > > > > I'm pretty sure the arithmetic was wrong, and it was treating externa= l > > > monitors differently from the primary screen for some reason I > > > couldn't work out. > > > > > > Can you check if the attached looks right to you? I can't check as I > > > don't have an external monitor here. > > > > > > > Also see the following bug which has a working patch: > > > > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D76691 > > Sorry, I think I'm being a bit dim but I can't see any patch there > that fixes this particular problem. > Hi, Alan, I'm now not at my desk but perhaps if the 76691 patch doesn't solve this, but it solves the bigger problem that the monitor attributes are wrong, maybe combine them while you're at it? -Stephane --000000000000bc6a0706360fcac9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
= On Mon, May 26, 2025 at 4:23=E2=80=AFPM Alan Third <alan@idiocy.org> wrote:
On Mon, May 26, 2025 at 03:38:46PM -0400, Ship Mints wrote: > On Mon, May 26, 2025 at 3:35=E2=80=AFPM Alan Third <alan@idiocy.org> wrote:
>
> > I'm pretty sure the arithmetic was wrong, and it was treating= external
> > monitors differently from the primary screen for some reason I > > couldn't work out.
> >
> > Can you check if the attached looks right to you? I can't che= ck as I
> > don't have an external monitor here.
> >
>
> Also see the following bug which has a working patch:
>
> https://debbugs.gnu.org/cgi/bugreport.cgi= ?bug=3D76691

Sorry, I think I'm being a bit dim but I can't see any patch there<= br> that fixes this particular problem.

Hi, Alan,

I'm now not at my de= sk but perhaps if the 76691 patch doesn't solve this, but it solves the= bigger problem that the monitor attributes are wrong, maybe combine them w= hile you're at it?

-Stephane
--000000000000bc6a0706360fcac9-- From debbugs-submit-bounces@debbugs.gnu.org Mon May 26 17:17:55 2025 Received: (at control) by debbugs.gnu.org; 26 May 2025 21:17:55 +0000 Received: from localhost ([127.0.0.1]:60876 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uJfCl-0001Kh-9w for submit@debbugs.gnu.org; Mon, 26 May 2025 17:17:55 -0400 Received: from dane.soverin.net ([185.233.34.11]:35537) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uJfCh-0001K6-HM; Mon, 26 May 2025 17:17:52 -0400 Received: from smtp.soverin.net (unknown [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dane.soverin.net (Postfix) with ESMTPS id 4b5pWX6fKlzrTm; Mon, 26 May 2025 21:17:44 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.99]) by soverin.net (Postfix) with ESMTPSA id 4b5pWX28FTz3Z; Mon, 26 May 2025 21:17:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1748294264; bh=XhGDifMUfQXcFFIjUBQKyrLdM51o9yM477kI8SdWHe8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=NctcT2Wo8qOae5Okkg5cpRRyhAC/Of+lOnnhQOLQhItgqXZHJ605T0Yq51zhq6T1R f9T79hglTRCkhw7N4swuVutqhTfh+UjAl1XSqymfRpUHw1y8cofJE19b5wJ9/1kTiJ mJTQOHOte1YhY9nrYw6CLxhW5nMPDQMbZdzE0k5Gfkjae8OUTqp9siN9ctXzoLqKDm rWqIXFO41Si6HZYekmsMcJITn7eCa8aPtYa0opnmCd9a8/jVRRBlkvh2Ysolzfp+J4 kkFlOJDYCFzvbtEGwrC9Fnm8NgA5kNJarQJkNx4cDOamKwxkBQ5NgIkiS8ScIWgYja IhTd8jCfkPVBg== X-CM-Analysis: v=2.4 cv=d/oPyQjE c=1 sm=1 tr=0 ts=6834da78 a=UbsBXRcqaZ6D9kgPt/Dvnw==:617 a=xqWC_Br6kY4A:10 a=kj9zAlcOel0A:10 a=dt9VzEwgFbYA:10 a=SraIrIJzsCucrja1Oj8A:9 a=CjuIK1q_8ugA:10 a=9MSFP0l5Dcwi9NrB_JPx:22 X-CM-Envelope: MS4xfAWdwmSloSd5DkZ6NqzvGX9ygSRVI8NwxwmpI7Tq6N02IR4/ITDzZqzkXFL5OzrTtgnt7NfSFBozvYfWGXO1QRcjUpnKrJLx6zRTpGs2ErgLYrXnyeve ZeT5fjx7xvMWiEFnKZTdVipAXY1MfqdFNy/N9bXmjUp4Q3A9kgUOPpKowjWgqGPEOjvJXG+6YwvGCUFSNEVI4FV38IdTIc0wxA0s8ytXDUpYl/y5TgwQC6KU WmQBFQmc2rkZsJ41oQS9QHH4TPOmkhRrDYPGV97qz5TExWz4wmVIO7kZOPiCTkZwHPO0KwTVXjAQhdwxwjVGZuoBw3OjGWhX1IiN68xNANf/aAuF06YqrmIe clMfJVMg22t6Y1pXHC0PMGBNHf5wdijvFXqudF7u1cOEbYq1Kg4= Received: from localhost (faroe.holly.idiocy.org [local]) by faroe.holly.idiocy.org (OpenSMTPD) with ESMTPA id 7edcda33; Mon, 26 May 2025 21:17:43 +0000 (UTC) Date: Mon, 26 May 2025 22:17:43 +0100 From: Alan Third To: Ruiyang Wu Subject: Re: bug#76691: `display-monitor-attributes-list` not working properly on macOS Message-ID: Mail-Followup-To: Alan Third , Ruiyang Wu , Ship Mints , Robert Pluim , Juri Linkov , 76691@debbugs.gnu.org, Stefan Kangas References: <87jz94ajyp.fsf@gmail.com> <877c53alx4.fsf@gmail.com> <87tt868o9g.fsf@gmail.com> <87pliu8f1i.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spampanel-Class: ham X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control Cc: 76691@debbugs.gnu.org, Robert Pluim , Stefan Kangas , Ship Mints , Juri Linkov 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 (-) package emacs merge 76691 76051 user emacs usertag 76691 + ns thankyou On Mon, Apr 07, 2025 at 01:10:49AM -0400, Ruiyang Wu wrote: > Hi all, > > How can we move this forward? It would be great to see Ship Mints' > patch merged to master and backported to emacs-30. Is there anything blocking this other than getting the OK from the maintainers? I'm inclined to say it's good to go as the existing names don't work at all, afaik, so we can't be any worse off than we were before. Stephane, when you get a chance can you forward the latest version of this patch so I can compare it with my patch for 76051 so we can see if they're covering the same ground? Thanks. -- Alan Third From unknown Sat Jun 14 19:34:04 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: Anders Lindgren Subject: bug#76051: closed (Re: 29.4; Incorrect workarea entry in display-monitor-attributes-list on macOS) Message-ID: References: X-Gnu-PR-Message: they-closed 76051 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch confirmed Reply-To: 76051@debbugs.gnu.org Date: Mon, 02 Jun 2025 20:18:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1748895483-2983-1" This is a multi-part message in MIME format... ------------=_1748895483-2983-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #76051: 29.4; Incorrect workarea entry in display-monitor-attributes-list o= n macOS 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 76051@debbugs.gnu.org. --=20 76051: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D76051 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1748895483-2983-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 76051-done) by debbugs.gnu.org; 2 Jun 2025 20:17:08 +0000 Received: from localhost ([127.0.0.1]:55569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uMBam-0000ir-13 for submit@debbugs.gnu.org; Mon, 02 Jun 2025 16:17:08 -0400 Received: from dane.soverin.net ([2a10:de80:1:4092:b9e9:229d:0:1]:59067) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uMBai-0000hp-0J for 76051-done@debbugs.gnu.org; Mon, 02 Jun 2025 16:17:05 -0400 Received: from smtp.soverin.net (c04smtp-lb01.int.sover.in [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dane.soverin.net (Postfix) with ESMTPS id 4bB4r71HHpz109Z; Mon, 2 Jun 2025 20:16:55 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.100]) by soverin.net (Postfix) with ESMTPSA id 4bB4r65FNczDK; Mon, 2 Jun 2025 20:16:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1748895415; bh=kLX4ib35VYy4njG55w52nqRd1hZuK0Su5AbO21f/EGk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=U4/q1oHV27HcntbSs/q9eRdtqtnJeEwcXjAWq8OzrRm92upDlevtV/EiL2l2/gKDm gUntPql8hlJZLlG8Y0yAYcTClsJR5yU4D6lOxsSMHJlomecN/F0V0bOoyo22WpC3wV wLA0lrmHnfk2nN8eUrne1xZBDijQAJgT/9FwygCV3jbVsqpEODo4Te8e/HIusftIki 9b0fXEnKRj2JCLq/EOYPHpeqU2oLvqcxefjbVxAw2YEPLnZSAniHyMsDnHmL4KB5pW Ybrk0PXkf7ErY0TiNGlB2ucXSxRbmsndLi6YJOw0k7MK3Z/Ui9qpX8lbzNw6RGOvX5 csq+coV9QVvFA== X-CM-Analysis: v=2.4 cv=I7afRMgg c=1 sm=1 tr=0 ts=683e06b6 a=UbsBXRcqaZ6D9kgPt/Dvnw==:617 a=xqWC_Br6kY4A:10 a=kj9zAlcOel0A:10 a=6IFa9wvqVegA:10 a=NDIi-ozSe3IySEp1gJcA:9 a=CjuIK1q_8ugA:10 a=9MSFP0l5Dcwi9NrB_JPx:22 X-CM-Envelope: MS4xfOyxCS9P+eNv6RACfoN0AM8I9h7Bj+H267OMikUstsMrDIabMedRrwtdePMv0ykCKZef8lCebbpXWeU2AsT6iPZWjNjIz0t1fhFUQYJCdTypWtsIL1hK VltRf0lBj184vuCOKYN4EDEthxJWOz7SX8UrMaTTRVM1dqEYk2BZl615TUCxxdoyQ7hIytGS9syyVNkB7xnOD8aIpW/bd4p+eC1+UWvvmpFC4m5HWrSmd1l3 boWiPEx07k7XLtYbY6tlDg== Received: from localhost (faroe.holly.idiocy.org [local]) by faroe.holly.idiocy.org (OpenSMTPD) with ESMTPA id d5c44d1b; Mon, 2 Jun 2025 20:16:53 +0000 (UTC) Date: Mon, 2 Jun 2025 21:16:53 +0100 From: Alan Third To: Anders Lindgren Subject: Re: 29.4; Incorrect workarea entry in display-monitor-attributes-list on macOS Message-ID: Mail-Followup-To: Alan Third , Anders Lindgren , 76051-done@debbugs.gnu.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spampanel-Class: ham X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 76051-done Cc: 76051-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.7 (-) On Mon, Jun 02, 2025 at 10:01:24PM +0200, Anders Lindgren wrote: > Hi! > > I have built a fresh Emacs with your patch, and it appears to be working > well. Thanks! Superb, thanks! I'll push it up to master now. > I also put together a small Emacs package to draw the monitor layout with > workareas as ASCII-boxes, based on the information provided by > display-monitor-attributes-list. This makes it easier to check that the > values returned are sane. I haven't published it yet, so I attached a copy. > > For example, this is my mac layout with the laptop screen with doc to the > right and an external monitor to the left. The numbers are the margin (in > pixels), i.e. the space between the workarea and the full area of the > monitor. > > +---------------------------------------+ > | | > | ^ 25 | > | | > | | > | | > | | > | | > | | > | | > | | > | < 0 > 0 +--------------------------+ > | | | > | | ^ 38 | > | | | > | | | > | | | > | | | > | | | > | | | > | v 0 | < 0 > 0 | > | | | > +---------------------------------------+ | > | | > | | > | | > | v 66 | > | | > +--------------------------+ > > > -- Anders That's pretty cool! -- Alan Third ------------=_1748895483-2983-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 4 Feb 2025 13:42:34 +0000 Received: from localhost ([127.0.0.1]:43184 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tfJCE-0002tS-9I for submit@debbugs.gnu.org; Tue, 04 Feb 2025 08:42:34 -0500 Received: from lists.gnu.org ([2001:470:142::17]:60668) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tfJCA-0002tB-UH for submit@debbugs.gnu.org; Tue, 04 Feb 2025 08:42:32 -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 1tfJC4-0005Ui-91 for bug-gnu-emacs@gnu.org; Tue, 04 Feb 2025 08:42:24 -0500 Received: from mail-ed1-x529.google.com ([2a00:1450:4864:20::529]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tfJC2-00028h-IZ for bug-gnu-emacs@gnu.org; Tue, 04 Feb 2025 08:42:23 -0500 Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-5d9837f201aso12330712a12.0 for ; Tue, 04 Feb 2025 05:42:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1738676540; x=1739281340; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=Affufy7vWYBe3ekpmG2EMv4e68gSkuMuHaJsIzJ4Ul0=; b=JxlKwtVol4Tjq4VVnKTV4kyuLvUmPPR1+WDqc9OMPGrjDVPrLzrDu0FdLkKgJVMG9g jeHuJLSxJ+dY7hFgEoSMBU5/EM5l0JmOlW5VuZdXSZ8uyuUiHCuJH9jqMK+3VkcbC9Ma 31GaloxlB1P+3AzZVKG3P6luHdwxKt9S2sz5uwtmYKRg1iTUXgCF6Ql6KGHh6B5XYO9R 1RGU81sOvYXwvS+gppV/M21yYYShRO7VnmqAEWjGfNjB9WLa3P5Na0cCT713lvXc9u73 VnrNfr5eZQlYTNmN9gGnHkFTpGAiWEJyPcRNC4IXWrBvZRTn5hWpfManIawNah6dr/7E l+ow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738676540; x=1739281340; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=Affufy7vWYBe3ekpmG2EMv4e68gSkuMuHaJsIzJ4Ul0=; b=IWaFypecU08fDRC223mI0epbG83qrJJrjp82YDTcTL7yRHgd8IY76ZA95OzGUkXBi2 HkdUkWhCvOQztyM57ta0hu2FD4fXkZ3FrKRUAbI9mkQ6Qs9GGjykpcfMjzp44A6N5+pb jg1+g2ifbu47JiR/X1gSo8SRiO5wICd8OSVoZQtJlJ2E0wgk3UJMEFjegzhmAhFqo7XE o3aOoqv9gDbyQj6k4HB4xRRtS+T9dagY1/5KUL9cK0EuvPhwrbNY+x8X4KiDPW+BEKh2 KmoJxdAJOpW36aIXAp9IcQFgDLSAZNHQY/ULcc4BILfggMQBDpDovfBOXHG6KzAS9Rwo KIUw== X-Gm-Message-State: AOJu0YzMeBa5O89fbBEcuK0C7mvHKBgiaUFoVO0JrWCd06Bf3fBIQGf6 hqvYQ8B99RQ6vuW3xeFPxPkdcz2y3kap4OqDjai9L9kegZKq8ndS60mS0YE2zQk9ei1KRKG6fhT XPRh2q1OwJtZ5OzLXPFy0xmzE2YTiKnKh X-Gm-Gg: ASbGncsBOOoUSb6HnO7dUOmXwVkTnWd5MHyjQDl2jcGBe1kg1LADiwM6B6JXdW86Bnr QU4FGJL562uVD3MoXDOPhwIvAwqrnOVds4iVpKu0BthHJlNxPRoeCqoXlW2MiXnnSUjYmcHdM6H zfOgWeCJs3XM4Oa8P/Iwwnx0on2IS7mMs= X-Google-Smtp-Source: AGHT+IFHJTRGcFQZhfBNYo/uct2yb6j6s8qy0cUnZ5UC9GgNcxtuUgvGFdQ1m/DYoVZUQBQfCzLoh+TFcGoM11r61t0= X-Received: by 2002:a05:6402:1cc1:b0:5d3:eb50:4e33 with SMTP id 4fb4d7f45d1cf-5dcc14a5279mr2891971a12.5.1738676539141; Tue, 04 Feb 2025 05:42:19 -0800 (PST) MIME-Version: 1.0 From: Anders Lindgren Date: Tue, 4 Feb 2025 14:42:07 +0100 X-Gm-Features: AWEUYZnatKTzN1p1EWgr5Yz4SDWNA2NlQewZwsR-dgmOVOGmBbwcrgvloQmzVaA Message-ID: Subject: 29.4; Incorrect workarea entry in display-monitor-attributes-list on macOS To: Emacs bug reports and feature requests Content-Type: multipart/alternative; boundary="0000000000007ebe07062d512dd6" Received-SPF: pass client-ip=2a00:1450:4864:20::529; envelope-from=andlind@gmail.com; helo=mail-ed1-x529.google.com 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.0 (+) 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.0 (/) --0000000000007ebe07062d512dd6 Content-Type: text/plain; charset="UTF-8" Hi! I think the `display-monitor-attributes-list' function returns an incorrect `workarea' entry on macOS. Concretely, I have a laptop with an external monitor connected. The external monitor is placed above to the left. The `display-monitor-attributes-list' function returns the following (abbreviated): (((geometry 0 0 1728 1117) (workarea 0 38 1728 1079) ... ((geometry -2560 -723 2560 1440) (workarea -2560 -638 2560 1330) ...)) The first member in the list describes the laptop monitor (the primary monitor), the second the external monitor. The first two numbers, `X' and `Y', in each entry describe the position of the top left corner of the area, relative to the top left corner of the primary monitor. The number that I think is incorrect is the `Y' of the workarea of the external monitor, which is "-638". It indicates that there is a (723-638 = 85 pixel area on top of the screen which is outside the work area.) However, in reality, there is a 25 pixel menu bar which should be outside the work area. The 85 probably comes from the macOS dock, which is placed in the lower part of the screen. The height field correctly includes both the menu bar and the dock. I've tested this on Emacs 29.4 and 30.0.93 on macOS 15.1. -- Anders Lindgren (Long time Emacs contributor and former NS maintainer) --0000000000007ebe07062d512dd6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi!

I think the `display-monitor-attributes-list= 9; function returns an incorrect `workarea' entry on macOS.

Conc= retely, I have a laptop with an external monitor connected. The external mo= nitor is placed above to the left.

The `display-monitor-attributes-l= ist' function returns the following (abbreviated):

=C2=A0 =C2=A0= (((geometry 0 0 1728 1117) (workarea 0 38 1728 1079) ...
=C2=A0 =C2=A0 = =C2=A0((geometry -2560 -723 2560 1440) (workarea -2560 -638 2560 1330) ...)= )

The first member in the list describes the laptop monitor (the pri= mary monitor), the second the external monitor.

The first two number= s, `X' and `Y', in each entry describe the position of the top left= corner of the area, relative to the top left corner of the primary monitor= .

The number that I think is incorrect is the `Y' of the workare= a of the external monitor, which is "-638". It indicates that the= re is a (723-638 =3D 85 pixel area on top of the screen which is outside th= e work area.)

However, in reality, there is a 25 pixel menu bar whic= h should be outside the work area. The 85 probably comes from the macOS doc= k, which is placed in the lower part of the screen.

The height field= correctly includes both the menu bar and the dock.

I've tested = this on Emacs 29.4 and 30.0.93 on macOS 15.1.

=C2=A0 =C2=A0 -- Ander= s Lindgren (Long time Emacs contributor and former NS maintainer)
--0000000000007ebe07062d512dd6-- ------------=_1748895483-2983-1-- From unknown Sat Jun 14 19:34:04 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: Ruiyang Wu Subject: bug#76691: closed (Re: 29.4; Incorrect workarea entry in display-monitor-attributes-list on macOS) Message-ID: References: <521B572F-4A67-4D4B-9A63-B1906E92FA84@gmail.com> X-Gnu-PR-Message: they-closed 76691 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch confirmed Reply-To: 76691@debbugs.gnu.org Date: Mon, 02 Jun 2025 20:18:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1748895483-2983-3" This is a multi-part message in MIME format... ------------=_1748895483-2983-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #76051: `display-monitor-attributes-list` not working properly on macOS 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 76691@debbugs.gnu.org. --=20 76051: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D76051 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1748895483-2983-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 76051-done) by debbugs.gnu.org; 2 Jun 2025 20:17:08 +0000 Received: from localhost ([127.0.0.1]:55569 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uMBam-0000ir-13 for submit@debbugs.gnu.org; Mon, 02 Jun 2025 16:17:08 -0400 Received: from dane.soverin.net ([2a10:de80:1:4092:b9e9:229d:0:1]:59067) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1uMBai-0000hp-0J for 76051-done@debbugs.gnu.org; Mon, 02 Jun 2025 16:17:05 -0400 Received: from smtp.soverin.net (c04smtp-lb01.int.sover.in [10.10.4.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dane.soverin.net (Postfix) with ESMTPS id 4bB4r71HHpz109Z; Mon, 2 Jun 2025 20:16:55 +0000 (UTC) Received: from smtp.soverin.net (smtp.soverin.net [10.10.4.100]) by soverin.net (Postfix) with ESMTPSA id 4bB4r65FNczDK; Mon, 2 Jun 2025 20:16:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1748895415; bh=kLX4ib35VYy4njG55w52nqRd1hZuK0Su5AbO21f/EGk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=U4/q1oHV27HcntbSs/q9eRdtqtnJeEwcXjAWq8OzrRm92upDlevtV/EiL2l2/gKDm gUntPql8hlJZLlG8Y0yAYcTClsJR5yU4D6lOxsSMHJlomecN/F0V0bOoyo22WpC3wV wLA0lrmHnfk2nN8eUrne1xZBDijQAJgT/9FwygCV3jbVsqpEODo4Te8e/HIusftIki 9b0fXEnKRj2JCLq/EOYPHpeqU2oLvqcxefjbVxAw2YEPLnZSAniHyMsDnHmL4KB5pW Ybrk0PXkf7ErY0TiNGlB2ucXSxRbmsndLi6YJOw0k7MK3Z/Ui9qpX8lbzNw6RGOvX5 csq+coV9QVvFA== X-CM-Analysis: v=2.4 cv=I7afRMgg c=1 sm=1 tr=0 ts=683e06b6 a=UbsBXRcqaZ6D9kgPt/Dvnw==:617 a=xqWC_Br6kY4A:10 a=kj9zAlcOel0A:10 a=6IFa9wvqVegA:10 a=NDIi-ozSe3IySEp1gJcA:9 a=CjuIK1q_8ugA:10 a=9MSFP0l5Dcwi9NrB_JPx:22 X-CM-Envelope: MS4xfOyxCS9P+eNv6RACfoN0AM8I9h7Bj+H267OMikUstsMrDIabMedRrwtdePMv0ykCKZef8lCebbpXWeU2AsT6iPZWjNjIz0t1fhFUQYJCdTypWtsIL1hK VltRf0lBj184vuCOKYN4EDEthxJWOz7SX8UrMaTTRVM1dqEYk2BZl615TUCxxdoyQ7hIytGS9syyVNkB7xnOD8aIpW/bd4p+eC1+UWvvmpFC4m5HWrSmd1l3 boWiPEx07k7XLtYbY6tlDg== Received: from localhost (faroe.holly.idiocy.org [local]) by faroe.holly.idiocy.org (OpenSMTPD) with ESMTPA id d5c44d1b; Mon, 2 Jun 2025 20:16:53 +0000 (UTC) Date: Mon, 2 Jun 2025 21:16:53 +0100 From: Alan Third To: Anders Lindgren Subject: Re: 29.4; Incorrect workarea entry in display-monitor-attributes-list on macOS Message-ID: Mail-Followup-To: Alan Third , Anders Lindgren , 76051-done@debbugs.gnu.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spampanel-Class: ham X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 76051-done Cc: 76051-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.7 (-) On Mon, Jun 02, 2025 at 10:01:24PM +0200, Anders Lindgren wrote: > Hi! > > I have built a fresh Emacs with your patch, and it appears to be working > well. Thanks! Superb, thanks! I'll push it up to master now. > I also put together a small Emacs package to draw the monitor layout with > workareas as ASCII-boxes, based on the information provided by > display-monitor-attributes-list. This makes it easier to check that the > values returned are sane. I haven't published it yet, so I attached a copy. > > For example, this is my mac layout with the laptop screen with doc to the > right and an external monitor to the left. The numbers are the margin (in > pixels), i.e. the space between the workarea and the full area of the > monitor. > > +---------------------------------------+ > | | > | ^ 25 | > | | > | | > | | > | | > | | > | | > | | > | | > | < 0 > 0 +--------------------------+ > | | | > | | ^ 38 | > | | | > | | | > | | | > | | | > | | | > | | | > | v 0 | < 0 > 0 | > | | | > +---------------------------------------+ | > | | > | | > | | > | v 66 | > | | > +--------------------------+ > > > -- Anders That's pretty cool! -- Alan Third ------------=_1748895483-2983-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 2 Mar 2025 20:59:34 +0000 Received: from localhost ([127.0.0.1]:36707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1toqPO-0006M0-BN for submit@debbugs.gnu.org; Sun, 02 Mar 2025 15:59:34 -0500 Received: from lists.gnu.org ([2001:470:142::17]:54692) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1toqPL-0006L7-TS for submit@debbugs.gnu.org; Sun, 02 Mar 2025 15:59:32 -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 1toqPA-0001fL-N3 for bug-gnu-emacs@gnu.org; Sun, 02 Mar 2025 15:59:22 -0500 Received: from mail-qk1-x732.google.com ([2607:f8b0:4864:20::732]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1toqP8-00026M-79 for bug-gnu-emacs@gnu.org; Sun, 02 Mar 2025 15:59:19 -0500 Received: by mail-qk1-x732.google.com with SMTP id af79cd13be357-7c3bf231660so19578785a.0 for ; Sun, 02 Mar 2025 12:59:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740949156; x=1741553956; darn=gnu.org; h=to:date:message-id:subject:mime-version:from:from:to:cc:subject :date:message-id:reply-to; bh=RKR8UYrcruVCPHRWsVvPcqaTzIeGJdSDnf15NE9cdv0=; b=fPPbPPEf8tS0fwaPTlDrG+D7v/9AJTujn7lsGOqYbTQG2HUxPd12gfNry+g/GYPyKk arkat435panfyRUwoB5eKm8+LVYGOMlcEbouOGM6Q/F40g881AfV0aRVAmeL68qJZu/M LQGnoiOFoxpixsl5HWSoo0JOJuMgIBtIc9VmXiORlwNsI/63qXPZw3MGGBxim6O+Rcmt KK6vKYDi6quoaKxqbo0Gr3ki+ZZ7nUH+TKWHddLzjJSiDG33sb5Bnqe4SR/s0cVx2eGD AExx05LAmNPS+/tOiXYXCI0YSZ59TZaJQq41yWT6nlRQLXOnBkdyGFQ6JeOR8d8Ywlio 8Lfg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740949156; x=1741553956; h=to:date:message-id:subject:mime-version:from:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=RKR8UYrcruVCPHRWsVvPcqaTzIeGJdSDnf15NE9cdv0=; b=s37xlInkMzeAeBBCdJn5GCssocRvTUfIw/FXPOQtYMZ7EV/NEbzvIHUUuW4bhhPAPN bb2PT59TNvQtseRxHa4pOK5X3KaQpaq7bowznrnyiH0Iqoq38FQfxDSYjjAF/jyaYW9I 1+1rCtYVyZEpGACVEvBh1vxx7ZaQjXvcX41985wkvWo+NlHggNeUJ4hKGL4i8Jg7ghJ8 WCFlL3KPIQsQx6J49KZD00IVR20VJHrFwqBn8L6BzSx1LVmST4aA35H4PvNndjWY0qm5 cVeJVs7sFd2dLbeE199LMwW52kVXDfyuSDM8uttDKIJsKvSvZ23+8LDa32zdANJMIFIJ or2A== X-Gm-Message-State: AOJu0Ywiq4eDwZtrcHrp9HmFNzwKbsY4enHM87dHMV9MJNzphmrpzYBV yBmQBAai1HFiya/5SggvhwaavVhKAV8tCQ0XukWLmpi3EBnMirDEY0n5TD6Q X-Gm-Gg: ASbGncs2EXOFkVotYBBXGGeOTvVMAiMvz/9228Le5U/kAwn22dQglJorY/CsUoym9zg HiISO7busQax8D5g34xJQx1fNiPO7M0bo9hSOrAFK3qzcV5suk1eZekGwiK/yC46o6lJKRaEzQx 9fYkluhnUfhZiijPO22Mh1v5+xwEXTLSJyBiJRvl3c1gOHVButkq1wEf2jJnHCbfkqIhdIt5aU7 +AhoiKT/PqBoIV1DTPlculHiZE6PYHTkgX7ZBbAz/ORXWm/rA4J8vhRo0bmmEvx6qg5c70BIcrN 7vKFTRn+7D8Gz1qen6ZGPAzLa5kfpBgM75tteKhiuRVBfd+xSl4JvisUEAsZa4s2GxxnW3+twiQ = X-Google-Smtp-Source: AGHT+IEI7pJhdw34ftw8KcgRvB+JiQuBjChElQDegsc3RmbIdEOZrcld1v4zxJM45OfrHCIihUmRuw== X-Received: by 2002:a05:620a:1a0c:b0:7c0:a531:fe2d with SMTP id af79cd13be357-7c39c6639eamr1447724185a.42.1740949155893; Sun, 02 Mar 2025 12:59:15 -0800 (PST) Received: from smtpclient.apple ([2600:4041:423e:2300:301f:7fed:d7f4:31ee]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7c36fee8abasm519047685a.7.2025.03.02.12.59.15 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Mar 2025 12:59:15 -0800 (PST) From: Ruiyang Wu Content-Type: multipart/alternative; boundary="Apple-Mail=_AF1A38D2-B5F8-4728-B277-56147838CC7F" Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3826.400.131.1.6\)) Subject: `display-monitor-attributes-list` not working properly on macOS Message-Id: <521B572F-4A67-4D4B-9A63-B1906E92FA84@gmail.com> Date: Sun, 2 Mar 2025 15:59:05 -0500 To: bug-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.3826.400.131.1.6) Received-SPF: pass client-ip=2607:f8b0:4864:20::732; envelope-from=ywwry66@gmail.com; helo=mail-qk1-x732.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.2 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Hi, I am using the official NS port Emacs 30.1 on a MacBook (macOS Sequoia) with an external monitor. The output of `display-monitor-attributes-list` is as follows: > (((geometry 0 0 1512 982) (workarea 0 [...] Content analysis details: (1.2 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org] -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (ywwry66[at]gmail.com) 0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends in digit (ywwry66[at]gmail.com) 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 HTML_MESSAGE BODY: HTML included in message 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.2 (/) --Apple-Mail=_AF1A38D2-B5F8-4728-B277-56147838CC7F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi, I am using the official NS port Emacs 30.1 on a MacBook (macOS Sequoia) = with an external monitor. The output of = `display-monitor-attributes-list` is as follows: > (((geometry 0 0 1512 982) (workarea 0 38 1512 944) (mm-size 301 195) = (frames) (source . "NS")) ((geometry 1512 -517 1600 900 (workarea 1512 = -517 1600 875) (mm-size 549 311) (frames #) = (source . "NS"))) It fails to recognize my monitors. Furthermore, when I run `M-x = make-frame-on-monitor`, no candidate is provided. However, if I use `emacs-mac` from = https://bitbucket.org/mituharu/emacs-mac/src/master/, the monitors can = be correctly recognized. `display-monitor-attributes-list` prints > (((geometry 0 0 1512 982) (workarea 0 38 1512 944) (mm-size 301 196) = (frames) (name . "Built-in Retina Display") (backing-scale-factor . 2)) = ((geometry 1512 -517 1600 900) (workarea 1512 -492 1600 875) (mm-size = 549 311) (frames #) (name . "DELL U2515H") (backing-scale-factor . 2))) And I can also use `make-frame-on-monitor` to create new frames without = issue. Is it possible to have the aforementioned behavior from `emacs-mac` in = the official NS port? That would greatly improve my workflow. Thank you = very much! Best, Ruiyang --Apple-Mail=_AF1A38D2-B5F8-4728-B277-56147838CC7F Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii Hi,

I am using the official NS = port Emacs 30.1 on a MacBook (macOS Sequoia) with an external monitor. = The output of `display-monitor-attributes-list` is as = follows:

(((geometry 0 0 1512 982) (workarea 0 38 1512 944) = (mm-size 301 195) (frames) (source . "NS")) ((geometry 1512 -517 1600 = 900 (workarea 1512 -517 1600 875) (mm-size 549 311) (frames #<frame = scratch* 0x12d08e430>) (source . "NS")))
It fails to = recognize my monitors. Furthermore, when I run `M-x = make-frame-on-monitor`, no candidate is provided.


However, if I use `emacs-mac` = from https://bitb= ucket.org/mituharu/emacs-mac/src/master/, the monitors can be = correctly recognized. `display-monitor-attributes-list` = prints

(((geometry 0 0 1512 982) (workarea 0 38 1512 944) = (mm-size 301 196) (frames) (name . "Built-in Retina Display") = (backing-scale-factor . 2)) ((geometry 1512 -517 1600 900) (workarea = 1512 -492 1600 875) (mm-size 549 311) (frames #<frame *scratch* - GNU = Emacs at Ruiyangs-MBP 0x1400a62c8>) (name . "DELL U2515H") = (backing-scale-factor . 2)))
And I can also use = `make-frame-on-monitor` to create new frames without issue.


Is it = possible to have the aforementioned behavior from `emacs-mac` in the = official NS port? That would greatly improve my workflow. Thank you very = much!


Best,
Ruiyang

= --Apple-Mail=_AF1A38D2-B5F8-4728-B277-56147838CC7F-- ------------=_1748895483-2983-3--