From 826610d21690b2e05f6be3f2d5f71c6dc683054b Mon Sep 17 00:00:00 2001 From: Ben Byer Date: Wed, 7 Nov 2007 03:55:08 -0800 Subject: [PATCH] Fix for off-by-one error in menu bar height calculation -- props to Nicholas Riley! --- hw/darwin/apple/X11Application.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/darwin/apple/X11Application.m b/hw/darwin/apple/X11Application.m index d0c493683..43cdbc62a 100644 --- a/hw/darwin/apple/X11Application.m +++ b/hw/darwin/apple/X11Application.m @@ -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)) {