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 Ben Byer
parent b4d1448405
commit bd269d0d78

View File

@ -819,7 +819,7 @@ void X11ApplicationMain (int argc, const char *argv[],
/* Calculate the height of the menubar so we can avoid it. */ /* Calculate the height of the menubar so we can avoid it. */
aquaMenuBarHeight = NSHeight([[NSScreen mainScreen] frame]) - aquaMenuBarHeight = NSHeight([[NSScreen mainScreen] frame]) -
NSMaxY([[NSScreen mainScreen] visibleFrame]) - 1; NSMaxY([[NSScreen mainScreen] visibleFrame]);
if (!create_thread (server_thread, server_arg)) { if (!create_thread (server_thread, server_arg)) {
ErrorF("can't create secondary thread\n"); ErrorF("can't create secondary thread\n");