rmm5t/maxframe.el — pull request #8 by yoshinari-nomura (2014-09-16 01:30:36+00:00)
Title: Get size from the target display not from the current display

Current `x-maximize-frame` gets the display width from the current display, not from the target display.
If we have multiple displays and both resolutions are different, it takes wrong size as the new frame size.

for example, I have two displays:
1. MacBook Pro "15 (first screen 1440x900)
2. Thunderbolt "27 display (second screen 2560x1440)
and, current frame is located on the thunderbolt display,
then, `x-maximize-frame` makes 2560x1440 frame on the first screen.

After applying this PR, it will make 440x900 frame on the first screen.
It works with Emacs 24.3 and Mavericks, but I believe it also works with other environments.