=== modified file 'lisp/ChangeLog' --- lisp/ChangeLog 2010-09-15 15:30:43 +0000 +++ lisp/ChangeLog 2010-09-16 18:08:37 +0000 @@ -1,3 +1,9 @@ +2010-09-16 Stephen Berman
+ + * dframe.el (dframe-reposition-frame-emacs): Use tool-bar-pixel-width + in calculating new frame position. Add more space between new and + parent on the left. + 2010-09-15 Stefan Monnier * emacs-lisp/bytecomp.el (byte-compile-warning-types): New type === modified file 'lisp/dframe.el' --- lisp/dframe.el 2010-01-13 08:35:10 +0000 +++ lisp/dframe.el 2010-09-16 17:01:33 +0000 @@ -430,7 +430,8 @@ (unless (or (not window-system) (eq window-system 'pc)) (let* ((pfx (dframe-frame-parameter parent-frame 'left)) (pfy (dframe-frame-parameter parent-frame 'top)) - (pfw (frame-pixel-width parent-frame)) + (pfw (+ (tool-bar-pixel-width parent-frame) + (frame-pixel-width parent-frame))) (pfh (frame-pixel-height parent-frame)) (nfw (frame-pixel-width new-frame)) (nfh (frame-pixel-height new-frame)) @@ -459,7 +460,7 @@ (- (x-display-pixel-height) (car (cdr pfy)) pfh) (car (cdr pfy))))) (cond ((eq location 'right) - (setq newleft (+ pfx pfw 5) + (setq newleft (+ pfx pfw 10) newtop pfy)) ((eq location 'left) (setq newleft (- pfx 10 nfw) @@ -471,7 +472,7 @@ ;; extra 10 is just dressings for window ;; decorations. (let* ((left-guess (- pfx 10 nfw)) - (right-guess (+ pfx pfw 5)) + (right-guess (+ pfx pfw 10)) (left-margin left-guess) (right-margin (- (x-display-pixel-width) right-guess 5 nfw))) === modified file 'src/ChangeLog' --- src/ChangeLog 2010-09-14 20:32:35 +0000 +++ src/ChangeLog 2010-09-16 18:02:53 +0000 @@ -1,3 +1,8 @@ +2010-09-16 Stephen Berman + + * frame.c (Ftool_bar_pixel_width): New function to expose tool + bar's pixel width to Lisp. + 2010-09-14 Juanma Barranquero * cmds.c (syms_of_cmds)