Fix for off-by-one error in menu bar height calculation -- props to Nicholas Riley!

This commit is contained in:
Ben Byer 2007-11-07 03:55:08 -08:00 committed by Jeremy Huddleston
parent 5d0c594e1d
commit 6efdc6ca7b

View File

@ -922,7 +922,7 @@ X11ApplicationMain (int argc, const char *argv[],
/* Calculate the height of the menubar so we can avoid it. */
aquaMenuBarHeight = NSHeight([[NSScreen mainScreen] frame]) -
NSMaxY([[NSScreen mainScreen] visibleFrame]) - 1;
NSMaxY([[NSScreen mainScreen] visibleFrame]);
if (!create_thread (server_thread, server_arg))
{