From: Anders Lindgren <andlind@gmail.com>
To: 76051@debbugs.gnu.org
Subject: bug#76051: 29.4; Incorrect workarea entry in display-monitor-attributes-list on macOS
Date: Tue, 4 Feb 2025 14:42:07 +0100 [thread overview]
Message-ID: <CABr8ebb-gjcWJWGNAQRqtkkqDL3m=KmJ-7tECjGCCwOnTmRTOQ@mail.gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 1330 bytes --]
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)
[-- Attachment #2: Type: text/html, Size: 1470 bytes --]
next reply other threads:[~2025-02-04 13:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-04 13:42 Anders Lindgren [this message]
2025-02-08 11:05 ` bug#76051: 29.4; Incorrect workarea entry in display-monitor-attributes-list on macOS Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CABr8ebb-gjcWJWGNAQRqtkkqDL3m=KmJ-7tECjGCCwOnTmRTOQ@mail.gmail.com' \
--to=andlind@gmail.com \
--cc=76051@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).