summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nsmenu.m6
-rw-r--r--src/nsterm.m6
2 files changed, 6 insertions, 6 deletions
diff --git a/src/nsmenu.m b/src/nsmenu.m
index 7d340e8ec8..10dfe8aac1 100644
--- a/src/nsmenu.m
+++ b/src/nsmenu.m
@@ -136,12 +136,6 @@ ns_update_menubar (struct frame *f, bool deep_p, EmacsMenu *submenu)
menu = [[EmacsMenu alloc] initWithTitle: ns_app_name];
needsSet = YES;
}
- else
- { /* close up anything on there */
- id attMenu = [menu attachedMenu];
- if (attMenu != nil)
- [attMenu close];
- }
#if NSMENUPROFILE
ftime (&tb);
diff --git a/src/nsterm.m b/src/nsterm.m
index 4027f5c461..bd477a491f 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -6191,8 +6191,14 @@ not_in_argv (NSString *arg)
+FRAME_LINE_HEIGHT (emacsframe));
pt = [self convertPoint: pt toView: nil];
+#if !defined (NS_IMPL_COCOA) || \
+ MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
pt = [[self window] convertBaseToScreen: pt];
rect.origin = pt;
+#else
+ rect.origin = pt;
+ rect = [[self window] convertRectToScreen: rect];
+#endif
return rect;
}