Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add 'mf-maximized frame parameter so it's really easy to toggle maxim…

…ization.
  • Loading branch information...
commit 9b0cfab922c8ad80b2cfaa9d0bd137cd9a85ab4a 1 parent 63ac2a8
@caldwell caldwell authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  maxframe.el
View
2  maxframe.el
@@ -150,6 +150,7 @@ specified by HEIGHT."
(set-frame-parameter (selected-frame) 'mf-restore-height (frame-height))
(set-frame-parameter (selected-frame) 'mf-restore-top (frame-parameter nil 'top))
(set-frame-parameter (selected-frame) 'mf-restore-left (frame-parameter nil 'left)))
+ (set-frame-parameter (selected-frame) 'mf-maximized t)
(mf-set-frame-pixel-size (selected-frame)
(mf-max-display-pixel-width)
(mf-max-display-pixel-height))
@@ -167,6 +168,7 @@ specified by HEIGHT."
(set-frame-position (selected-frame)
(if (consp mf-restore-left) 0 mf-restore-left)
mf-restore-top))
+ (set-frame-parameter (selected-frame) 'mf-maximized nil)
(set-frame-parameter (selected-frame) 'mf-restore-width nil)
(set-frame-parameter (selected-frame) 'mf-restore-height nil)
(set-frame-parameter (selected-frame) 'mf-restore-top nil)
Please sign in to comment.
Something went wrong with that request. Please try again.