]> git.eshelyaron.com Git - emacs.git/commit
Fix ns_make_monitor_attribute_list (bug#76691)
authorshipmints <shipmints@gmail.com>
Tue, 4 Mar 2025 14:56:56 +0000 (09:56 -0500)
committerEshel Yaron <me@eshelyaron.com>
Sat, 7 Jun 2025 20:00:04 +0000 (22:00 +0200)
commit91a366c32e602e6399643585954286e05945ff73
tree73fc4ea27d737722551a4a208945ea145ff1f73a
parentc7b133b531930b054f80486e1df8b29c9c3723df
Fix ns_make_monitor_attribute_list (bug#76691)

This is the NS implementation for 'display-monitor-attributes-list'.
Change implementation from IORegistry to direct introspection
of NSScreen.

* src/nsfns.m (ns_make_monitor_attribute_list): Use localizedName
selector on NSScreen.  For anonymous displays, synthesize names
of the form ("%dx%d@%d,%d" width height x y).
(ns_get_name_from_ioreg) (ns_screen_name): Removed.

(cherry picked from commit 9cc5f1c697c1a47470651ff4293f335eaa10ea9a)
src/nsfns.m