summaryrefslogtreecommitdiff
path: root/src/nsterm.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/nsterm.m')
-rw-r--r--src/nsterm.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nsterm.m b/src/nsterm.m
index 1c1f0c8f239..4bdc67c10b5 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -5014,6 +5014,12 @@ ns_delete_terminal (struct terminal *terminal)
block_input ();
+#ifdef NS_IMPL_COCOA
+ /* Rather than try to clean up the NS environment we can just
+ disable the app and leave it waiting for any new frames. */
+ [NSApp setActivationPolicy:NSApplicationActivationPolicyProhibited];
+#endif
+
image_destroy_all_bitmaps (dpyinfo);
ns_delete_display (dpyinfo);
unblock_input ();