Browse files

Fix bug where frame-parameter can return a list for 'left, but

set-frame-position requires an integer -- force alignment to the left
edge in case of list (this feels slightly unsatisfactory since it's
not completely consistent with regular behaviour, but it's the
least-minimal change)
  • Loading branch information...
1 parent 59ca8db commit 4eeb0b11b9af28b56fa77422589a33904667a00d @markhepburn markhepburn committed Jan 22, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 maxframe.el
4 maxframe.el
@@ -170,7 +170,9 @@ specified by HEIGHT."
(when (and mf-restore-width mf-restore-height mf-restore-top mf-restore-left)
(set-frame-size (selected-frame) mf-restore-width mf-restore-height)
- (set-frame-position (selected-frame) mf-restore-left mf-restore-top))
+ (set-frame-position (selected-frame)
+ (if (consp mf-restore-left) 0 mf-restore-left)
+ mf-restore-top))
(setq mf-restore-width nil
mf-restore-height nil
mf-restore-top nil

0 comments on commit 4eeb0b1

Please sign in to comment.