Function: window--frame-landscape-p
window--frame-landscape-p is a byte-compiled function defined in
window.el.gz.
Signature
(window--frame-landscape-p &optional FRAME)
Documentation
Non-nil if FRAME is wider than it is tall.
This means actually wider on the screen, not wider character-wise. On text frames, use the heuristic that characters are roughtly twice as tall as they are wide.
Source Code
;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun window--frame-landscape-p (&optional frame)
"Non-nil if FRAME is wider than it is tall.
This means actually wider on the screen, not wider character-wise.
On text frames, use the heuristic that characters are roughtly twice as
tall as they are wide."
(if (display-graphic-p frame)
(> (frame-pixel-width frame) (frame-pixel-height frame))
;; On a terminal, displayed characters are usually roughly twice as
;; tall as they are wide.
(> (frame-width frame) (* 2 (frame-height frame)))))