GNU bug report logs - #76691
`display-monitor-attributes-list` not working properly on macOS

Previous Next

Package: emacs;

Reported by: Ruiyang Wu <ywwry66 <at> gmail.com>

Date: Sun, 2 Mar 2025 21:00:03 UTC

Severity: normal

Tags: confirmed, patch

Merged with 76051

Found in versions 29.4, 30.1, 31.0.50

Done: Alan Third <alan <at> idiocy.org>

Full log


Message #74 received at 76691 <at> debbugs.gnu.org (full text, mbox):

From: Ship Mints <shipmints <at> gmail.com>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: 76691 <at> debbugs.gnu.org, Ruiyang Wu <ywwry66 <at> gmail.com>,
 Stefan Kangas <stefankangas <at> gmail.com>, Juri Linkov <juri <at> linkov.net>
Subject: Re: bug#76691: `display-monitor-attributes-list` not working properly
 on macOS
Date: Tue, 4 Mar 2025 11:33:44 -0500
[Message part 1 (text/plain, inline)]
On Tue, Mar 4, 2025 at 11:06 AM Ship Mints <shipmints <at> gmail.com> wrote:

> On Tue, Mar 4, 2025 at 10:59 AM Ship Mints <shipmints <at> gmail.com> wrote:
>
>> On Tue, Mar 4, 2025 at 10:34 AM Robert Pluim <rpluim <at> gmail.com> wrote:
>>
>>> It gives me reasonable looking names here:
>>>
>>> (((name . "PL3467WQ") (geometry 0 0 3440 1440) (workarea 0 25 3440
>>> 1415) (mm-size 801 329) (frames #<frame *scratch* 0x131887028>)
>>> (source . "NS")) ((name . "Built-in Display") (geometry 459 1440 2048
>>> 1332) (workarea 459 1440 2048 1287) (mm-size 290 189) (frames) (source
>>> . "NS")))
>>>
>>
>> Robert,
>>
>> When you run (x-display-list), what do you get? Just your host name,
>> right? And if you unplug and replug your monitors and rerun?
>>
>
> And also (display-monitor-attributes-list) just to make sure it works with
> comings and goings of displays.
>

This thread from 2019 (Robert and Juri were there) seems to have hashed out
some of the monitor naming, both natural (reported), and synthetic.  Being
able to restore multi-monitor framesets seems a good use case but I wonder
how many macOS users would really use it and how much we should fuss to
strive to make monitor names as static as possible.  One issue would be
restoring a frameset with a different second or third monitor that reports
a different natural name, or with different smaller or larger geometry than
the record stored in the frameset.  Maybe some sort of monitor aliases akin
to the DISPLAY1 DISPLAY2 idea but which would associate with whatever the
currently reported displays are in sequential order, where DISPLAY1 is
always the "main" display.

https://lists.gnu.org/r/bug-gnu-emacs/2019-02/msg00526.html

-Stephane
[Message part 2 (text/html, inline)]

This bug report was last modified 12 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.