From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.devel Subject: (x-display-pixel-height) Date: Wed, 18 May 2022 17:56:33 -0500 Message-ID: <9A8CEE6D-D021-4B40-8130-C89F51A98F51@easesoftware.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) Content-Type: multipart/signed; boundary="Apple-Mail=_6BA2D5C6-049F-47B3-A5D1-0AE37505718F"; protocol="application/pgp-signature"; micalg=pgp-sha256 Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19758"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 19 00:59:13 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nrSdM-0004tb-9l for ged-emacs-devel@m.gmane-mx.org; Thu, 19 May 2022 00:59:12 +0200 Original-Received: from localhost ([::1]:50104 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nrSdL-0000Z2-20 for ged-emacs-devel@m.gmane-mx.org; Wed, 18 May 2022 18:59:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35196) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrSbm-0007qC-7T for emacs-devel@gnu.org; Wed, 18 May 2022 18:57:35 -0400 Original-Received: from cyan.ash.relay.mailchannels.net ([23.83.222.47]:42430) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nrSbj-00043W-Gt for emacs-devel@gnu.org; Wed, 18 May 2022 18:57:33 -0400 X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 9358D761EC2 for ; Wed, 18 May 2022 22:56:44 +0000 (UTC) Original-Received: from mi3-ss4.a2hosting.com (unknown [127.0.0.6]) (Authenticated sender: a2hosting) by relay.mailchannels.net (Postfix) with ESMTPA id 194E5761D47 for ; Wed, 18 May 2022 22:56:36 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1652914596; a=rsa-sha256; cv=none; b=b/veqWbXzKUH4Y3j9ZKVTHAH5uAJfNVElQJJozJnpWyGxI60osRCY72Ba+X75RwJyGyrPb G3xw4G69sv23tA1uDh4OZEQT/WXn4hbafdnbN5VuGR6ac3URylGPH/XJEyE7uNJ1YQ1wGD olNC18A6KRKpRz40wPE7xxQ7YGb6qzZmNSC/pijIlg/xd2ulqCkDvmxOSXZcauAKCmnTUh aQhPpEvYbALnPT5LPAeK1j9vjh5GIGs5hyHrg8S5/F5X2DCfIVNnS3oN5SXGhRTNqGs7E7 Fro4PPbaKrD+16AhwDCncnxW3/DttNHwERm2Y6AeGiNtAZ6uzZ2lMA/2FrTi0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1652914596; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: dkim-signature; bh=YyfEC7haGlHzKCEI/NifbhV40XfuOReKNkAtultZ7RE=; b=aRwGjNfmHiLVfmqN7iveqbtKSJfjkebiNG9zQocChd5QEcNJS2UdaAN8kmrIs3NCfGvoi/ XgF91dotzLx8Nd/wh5Kkk9b0/TxHqo0/teTxU88t3fjxC0p2vZ4iokmQVwM40L3ljpVqnZ aLpDG/kyfpMmFOAuPKwelQKwErPrRiJGyJ83YLklQxaV6YBeYRBinV0RzxfYEktnLTlCyq PMQJwegHbeq4VknmjSaLrKMc3iT6Q9ckuD2RQOmJoCQY/GzwthjgYXvMDkGbll4ulHnryz Q5kBmApsMDLd77ClHlc+sF8IdPU2LKHI1e9jZF1qXWmvlMh07NvG8QzcjvdyfA== ARC-Authentication-Results: i=1; rspamd-554c8f6c56-5xj6g; auth=pass smtp.auth=a2hosting smtp.mailfrom=pedz@easesoftware.com X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com X-MC-Relay: Neutral X-MailChannels-SenderId: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com X-MailChannels-Auth-Id: a2hosting X-Belong-Battle: 00dd39f87477b25e_1652914604373_726993427 X-MC-Loop-Signature: 1652914604373:2335742978 X-MC-Ingress-Time: 1652914604373 Original-Received: from mi3-ss4.a2hosting.com (mi3-ss4.a2hosting.com [68.66.200.199]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384) by 100.116.106.119 (trex/6.7.1); Wed, 18 May 2022 22:56:44 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=easesoftware.com; s=default; h=To:Date:Message-Id:Subject:Mime-Version: Content-Type: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=YyfEC7haGlHzKCEI/NifbhV40XfuOReKNkAtultZ7RE=; b=mUBygrGNn3THLRdH5Dud+UM05r SXUEuebVnrupTMuZRb1k/M43rvW+E+nj6tYxXgjGYsK4C0v4hz1d49Q7n6Wz43cpsFLh77oO5985k Yt9MF4HDlB8o+KtZW6F0k/uW8xhe7D5+O2yHSucsWf53GcmwD+HbCJJp7y5Ase65/eq9OPLZUIF/q fpt1nKLOFzzDDkVTvYSx6GRgYGtWliTO2Ye7YwYXS9cc9dXa7Kd28z6ADbuZseGavDyEDiRJHlrUG +r4Mq9CN6Zl7HHlkfhbaHZippAjN1kaMbkIlzX2Tk7XB4cOZ8+HpIWambK5RQ9hfThG9v9J0I+f2B qeMK/esw==; Original-Received: from cpe-70-94-128-193.satx.res.rr.com ([70.94.128.193]:54592 helo=smtpclient.apple) by mi3-ss4.a2hosting.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nrSap-0007CU-1Y for emacs-devel@gnu.org; Wed, 18 May 2022 18:56:35 -0400 X-Mailer: Apple Mail (2.3696.80.82.1.1) X-AuthUser: pedz+easesoftware.com@mi3-ss4.a2hosting.com Received-SPF: pass client-ip=23.83.222.47; envelope-from=pedz@easesoftware.com; helo=cyan.ash.relay.mailchannels.net 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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:289943 Archived-At: --Apple-Mail=_6BA2D5C6-049F-47B3-A5D1-0AE37505718F Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I=E2=80=99m using a Mac laptop and can plug in a second monitor. I=E2=80=99m also using two instances of Emacs 28.1. One I built on = macOS with NextStep support. The other I build on Free BSD with X11 = Lucid. I open the native macOS Emacs normally by double clicking the icon. I = open the Free BSD version by ssh=E2=80=99ing over to the BSD machine, = doing `emacs =E2=80=94batch` and then connecting to it via `emacsclient = -n -c -e nil -u`. I end up with a macOS Emacs and a Free BSD Emacs = being displayed on my laptop. I=E2=80=99ve been playing with frames, displays, and monitors and I more = or less understand everything I think but I think there is a bug and I = have one question. When I do `(display-monitor-attributes-list)` from the macOS Emacs with = the 2nd monitor connected I get this: ``` ( ( (geometry 0 0 1920 1080) (workarea 0 25 1920 1055) (mm-size 478 268) (frames #) (source . "NS") ) ( (geometry 192 1080 1512 982) (workarea 192 1080 1512 950) (mm-size 301 195) (frames) (source . "NS") ) ) ``` The top is the monitor and the bottom is the laptop=E2=80=99s display. = Notice that =E2=80=98name is not present. If I do `(display-pixel-height)` with the monitor attached, I get 2062 = which is the sum of the two heights. If I detach the monitor, I get 982 = which is the height of the laptop=E2=80=99s display. All good. However, the X11 version does not do this. I always get 2025. The = output from `(display-monitor-attributes-list)` changes. With the = monitor attached, there are two entries roughly like the one above and = when the monitor is not attached, the output is a single entry. The 2025 appears to be the value when the first window is opened = perhaps? It is the same value as the sum of the heights when the = monitor is attached. And it appears that it is not getting updated when = the monitor is detached. Is this a bug? If so, I can report it but = thought I would check here first. (I also can=E2=80=99t follow how = x_display_pixel_height works but that=E2=80=99s a detail.) My question pertains to the name of the monitors. Can I somehow give = the monitors names that will last for the life of Emacs? I hope my descriptions make sense to others. Thank you for your time, Perry --Apple-Mail=_6BA2D5C6-049F-47B3-A5D1-0AE37505718F Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE5yOa/gCtQpb3oCpljxzk9yzE+MAFAmKFeaEACgkQjxzk9yzE +MArXRAA0nqC4XOSTyHcrJMMMysaNS43OG9H+053oaqxft5LOzdlAW7fR50LbSai pMhcSQYYZjXkOc18JilsKC5Han2hr/VgPDaI4Uvufh1GkOLEIHYgF/RmP8j15hFk lXOq8Do/plKrHW414FiaRfoJ+bFz/I5b6msH2YpFLO4yFTUOvkv8/EEjOi3MqAZo MDSl/t7Kc7JfyLPRlObMO0d9b0lNAMOsdBHCRzS7ZYduFxHzUPGHkf1bnehDZLTd KdAqgygUSUbq4iNQM7/B4fBeNu7+Q4OTZ+W30ZNXWhPOdE9B+nlijFrY1zyKEbu4 j2qQRMYfVZISayLqIB3VQd2/AruIrKzGe6kgphgD1zeA9dDPm38qgBV0kxusml0M 1KaMMDUnJ8fC/fEqoIU3sFERX645TahpcHpX7bHlDnSR8jfEQFkjNV6onCiw20sz 4qnAgJdrt/8eM6miuM8AQFjPyWQuHiGJJfC37VcYYLveQYCxb28R56BHNRdxxfI8 aieQquGG1K8xKuofR33jw/afRDRxfECmRgoGpo5bJ0B6bSK95SThqaliZMG2Yp4j oguC2MKsH9yoyBLScYQdC1y8dFt6jhSetAikwwY3XbG10uQ+r/RH7zfw5t+JibHa Q2tQwmpONquGASe0VL6074nP9D81wSg7YZbBXgjwRdbFcoyo3ZU= =G9Zu -----END PGP SIGNATURE----- --Apple-Mail=_6BA2D5C6-049F-47B3-A5D1-0AE37505718F--