bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#30074: 26.0; Add function(s) for current monitor info


From: Lars Ingebrigtsen
Subject: bug#30074: 26.0; Add function(s) for current monitor info
Date: Mon, 15 Jul 2019 17:25:55 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

Drew Adams <address@hidden> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]