Mercurial > emacs
changeset 102149:df135773c0eb
* nsterm.m (x_make_frame_invisible): Unset async_visible,
async_iconified. Based on a patch by Christian Lynbech
<christian.lynbech@tieto.com>.
(EmacsView-windowDidMiniaturize:): Unset async_visible.
author | Adrian Robert <Adrian.B.Robert@gmail.com> |
---|---|
date | Fri, 20 Feb 2009 11:39:19 +0000 |
parents | b8dfb0b7d10f |
children | 8b8ff4bab8c0 |
files | src/nsterm.m |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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) {