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

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

bug#15336: Bad computation of window height


From: martin rudalics
Subject: bug#15336: Bad computation of window height
Date: Fri, 24 Oct 2014 19:52:30 +0200

>      ;; auto-detect the screen dimensions and compute the height of Emacs
>      (add-to-list 'default-frame-alist
>                   (cons 'height
>                         (/ (- (x-display-pixel-height) 106)

x-display-pixel-height is a built-in function in `C source code'.
[...]
On "multi-monitor" setups this refers to the pixel height for all
physical monitors associated with DISPLAY.  To get information for
each physical monitor, use `display-monitor-attributes-list'.

And since you are (presumably) on Windows this coincides with the
documentation of SM_CYVIRTUALSCREEN:

The height of the virtual screen, in pixels. The virtual screen is the
bounding rectangle of all display monitors. The SM_YVIRTUALSCREEN metric
is the coordinates for the top of the virtual screen.

>                            (frame-char-height))))

So what does (x-display-pixel-height) return on your system?

martin





reply via email to

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