# HG changeset patch # User Adrian Robert # Date 1235129959 0 # Node ID df135773c0eb996f192159e291ddd35ab4eb1a64 # Parent b8dfb0b7d10f0d9d8266f8d74025e9db0044071f * nsterm.m (x_make_frame_invisible): Unset async_visible, async_iconified. Based on a patch by Christian Lynbech . (EmacsView-windowDidMiniaturize:): Unset async_visible. diff -r b8dfb0b7d10f -r df135773c0eb src/nsterm.m --- a/src/nsterm.m Fri Feb 20 09:02:49 2009 +0000 +++ b/src/nsterm.m Fri Feb 20 11:39:19 2009 +0000 @@ -1001,6 +1001,8 @@ NSTRACE (x_make_frame_invisible); check_ns (); [[view window] orderOut: NSApp]; + f->async_visible = 0; + f->async_iconified = 0; } @@ -5308,8 +5310,8 @@ NSTRACE (windowDidDeminiaturize); if (!emacsframe->output_data.ns) return; + emacsframe->async_iconified = 0; emacsframe->async_visible = 1; - emacsframe->async_iconified = 0; windows_or_buffers_changed++; if (emacs_event) @@ -5340,6 +5342,7 @@ return; emacsframe->async_iconified = 1; + emacsframe->async_visible = 0; if (emacs_event) {