From 0c8bee77cb5aab065394576d11083d5e018e2fa3 Mon Sep 17 00:00:00 2001 From: Gellule Xg Date: Mon, 23 Jul 2012 09:05:53 -1000 Subject: [PATCH 1/2] Move all figures to the front with a non-interactive show() in macosx backend. --- src/_macosx.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/_macosx.m b/src/_macosx.m index 55e02b8f5f88..83062aaa3f5e 100644 --- a/src/_macosx.m +++ b/src/_macosx.m @@ -5743,6 +5743,9 @@ - (int)index if(nwin > 0) { [NSApp activateIgnoringOtherApps: YES]; + for (NSWindow *aWindow in [NSApp windows]) { + [aWindow orderFront:nil]; + } [NSApp run]; } Py_INCREF(Py_None); From 6533674ed77025ea1e06f4d73c1ab3bfa704d3e2 Mon Sep 17 00:00:00 2001 From: Gellule Xg Date: Fri, 27 Jul 2012 18:34:42 -1000 Subject: [PATCH 2/2] Variable "window" instead of "aWindow" to be consistent with the rest of the code. --- src/_macosx.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/_macosx.m b/src/_macosx.m index 83062aaa3f5e..942c3af9b623 100644 --- a/src/_macosx.m +++ b/src/_macosx.m @@ -5743,8 +5743,8 @@ - (int)index if(nwin > 0) { [NSApp activateIgnoringOtherApps: YES]; - for (NSWindow *aWindow in [NSApp windows]) { - [aWindow orderFront:nil]; + for (NSWindow *window in [NSApp windows]) { + [window orderFront:nil]; } [NSApp run]; }