aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/frame.el
diff options
context:
space:
mode:
authorJason Rumney <[email protected]>2001-02-23 10:23:08 +0000
committerJason Rumney <[email protected]>2001-02-23 10:23:08 +0000
commit5c39a60f1d9428b2c3bec7376e12a4f4b3b91c1a (patch)
tree81fd53761dedb7926ce4b070265c32c785b040bc /lisp/frame.el
parentf65d66f800135e09ecd0c5f1fcfe30ece9f72e48 (diff)
(frame-notice-user-settings): Only adjust frame height
for no tool-bar case if tool-bar was originally switched on.
Diffstat (limited to 'lisp/frame.el')
-rw-r--r--lisp/frame.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/frame.el b/lisp/frame.el
index 3def9a94ae..c05347c2d4 100644
--- a/lisp/frame.el
+++ b/lisp/frame.el
@@ -292,11 +292,12 @@ React to settings of `default-frame-alist', `initial-frame-alist' there."
(when (display-graphic-p)
(let ((tool-bar-lines (or (assq 'tool-bar-lines initial-frame-alist)
(assq 'tool-bar-lines default-frame-alist))))
- (when (or (null tool-bar-lines)
- (null (cdr tool-bar-lines))
- (eq 0 (cdr tool-bar-lines)))
+ (when (and tool-bar-originally-present
+ (or (null tool-bar-lines)
+ (null (cdr tool-bar-lines))
+ (eq 0 (cdr tool-bar-lines))))
(let* ((char-height (frame-char-height frame-initial-frame))
- (image-height 24)
+ (image-height tool-bar-images-pixel-height)
(margin (cond ((and (consp tool-bar-button-margin)
(integerp (cdr tool-bar-button-margin))
(> tool-bar-button-margin 0))