From d743362f714a8b69c4b6ceb61f48347cdaf7bd30 Mon Sep 17 00:00:00 2001 From: Gellule Xg Date: Fri, 6 Jan 2012 10:11:02 -1000 Subject: [PATCH] Raises figures when issuing a blocking show() in macosx backend. This is done by issuing an activateIgnoringOtherApps:YES on NSApp, in the show() method of the macosx backend. --- src/_macosx.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/_macosx.m b/src/_macosx.m index 997744dfbe88..42780f17f824 100644 --- a/src/_macosx.m +++ b/src/_macosx.m @@ -5552,7 +5552,10 @@ - (int)index static PyObject* show(PyObject* self) { - if(nwin > 0) [NSApp run]; + if(nwin > 0) { + [NSApp activateIgnoringOtherApps:YES]; + [NSApp run]; + } Py_INCREF(Py_None); return Py_None; }