Frameworks/AIUtilities Framework/Source/AIBorderlessWindow.m
branchadium-1.5.10.5
changeset 5997 d88e6711d0e0
parent 3679 f4294bb53b0f
child 6016 325e2ab3406f
--- a/Frameworks/AIUtilities Framework/Source/AIBorderlessWindow.m	Mon Nov 04 10:23:55 2019 +0000
+++ b/Frameworks/AIUtilities Framework/Source/AIBorderlessWindow.m	Thu Nov 14 16:22:42 2019 -0500
@@ -68,9 +68,9 @@
     BOOL shouldClose = YES;
     
 	if ([self delegate] && [[self delegate] respondsToSelector:@selector(windowShouldClose:)]) {
-        shouldClose = [(id)[self delegate] windowShouldClose:nil];
+        shouldClose = [(id)[self delegate] windowShouldClose:sender];
     } else if ([self respondsToSelector:@selector(windowShouldClose:)]) { 
-        shouldClose = [(id)self windowShouldClose:nil];
+        shouldClose = [(id)self windowShouldClose:sender];
 	}
 	
     if (shouldClose) {