From 1298bd76a9398001285d4883af81217402311bd1 Mon Sep 17 00:00:00 2001 From: Cimarron Mittelsteadt Date: Wed, 1 Jun 2016 09:25:21 -0700 Subject: [PATCH] BUG: Fix to prevent macosx backend from trying to add a quartz tap on anything but the main Python app --- src/_macosx.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/_macosx.m b/src/_macosx.m index 66c8c7d389ca..7c34c3d9ca19 100644 --- a/src/_macosx.m +++ b/src/_macosx.m @@ -1971,6 +1971,9 @@ - (void)launch:(NSNotification*)notification CFMachPortRef port; CFRunLoopSourceRef source; NSDictionary* dictionary = [notification userInfo]; + if (! [[dictionary valueForKey:@"NSApplicationName"] + isEqualToString:@"Python"]) + return; NSNumber* psnLow = [dictionary valueForKey: @"NSApplicationProcessSerialNumberLow"]; NSNumber* psnHigh = [dictionary valueForKey: @"NSApplicationProcessSerialNumberHigh"]; ProcessSerialNumber psn;