summaryrefslogtreecommitdiff
path: root/hw/darwin
diff options
context:
space:
mode:
authorBen Byer <bbyer@bbyer.local>2007-11-07 03:55:08 -0800
committerBen Byer <bbyer@bbyer.apple.com>2007-11-08 20:39:08 -0800
commitbd269d0d783d418ef99363478fdf849fd89eed76 (patch)
tree346990aa5b9f6a3c389f110bd1d2a751b324ed3b /hw/darwin
parentb4d14484056e6f4a7374fc1acf3f223be4bd116f (diff)
Fix for off-by-one error in menu bar height calculation -- props to Nicholas Riley!
Diffstat (limited to 'hw/darwin')
-rw-r--r--hw/darwin/apple/X11Application.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/darwin/apple/X11Application.m b/hw/darwin/apple/X11Application.m
index 84e295b4a..38675a38e 100644
--- a/hw/darwin/apple/X11Application.m
+++ b/hw/darwin/apple/X11Application.m
@@ -819,7 +819,7 @@ void 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)) {
ErrorF("can't create secondary thread\n");