GNU bug report logs -
#30074
26.0; Add function(s) for current monitor info
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Wed, 10 Jan 2018 23:13:01 UTC
Severity: wishlist
Tags: wontfix
Found in version 26.0
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Drew Adams <drew.adams <at> oracle.com> writes:
>> > There is already `frame-monitor-attributes'
>> > (frame-monitor-attributes (selected-frame))
>>
>> So there is. Drew, does this function do what you want?
>
> Yes, that takes care of the `current-monitor'
> function, but not `current-monitor-size.
> Please consider this bug report to be a
> request for a function like that.
Well, there's
(x-display-pixel-width (selected-frame))
=> 1920
(and height), so it seems like we're covered... (I don't know whether
that function works on non-X systems, though.)
And the function above also returns the same size data, but as an alist:
(frame-monitor-attributes (selected-frame))
=> ((name . "eDP1") (geometry 0 0 1920 1080) (workarea 0 27 1920 1053) (mm-size 310 170) (frames #<frame movie.el 0x563f20223a30> #<frame emacs 0x563f22915f10>) (source . "Gdk"))
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 5 years and 310 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.