Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1298bd7

Browse files
committed
BUG: Fix to prevent macosx backend from trying to add a quartz tap on
anything but the main Python app
1 parent 75a35ef commit 1298bd7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/_macosx.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1971,6 +1971,9 @@ - (void)launch:(NSNotification*)notification
19711971
CFMachPortRef port;
19721972
CFRunLoopSourceRef source;
19731973
NSDictionary* dictionary = [notification userInfo];
1974+
if (! [[dictionary valueForKey:@"NSApplicationName"]
1975+
isEqualToString:@"Python"])
1976+
return;
19741977
NSNumber* psnLow = [dictionary valueForKey: @"NSApplicationProcessSerialNumberLow"];
19751978
NSNumber* psnHigh = [dictionary valueForKey: @"NSApplicationProcessSerialNumberHigh"];
19761979
ProcessSerialNumber psn;

0 commit comments

Comments
 (0)