[gtk/wip/chergert/quartz4u: 82/146] macos: dont clear the delegate



commit 6f65ab73dcc6ef855526abc12b1aca52344aa143
Author: Christian Hergert <chergert redhat com>
Date:   Tue May 19 11:19:42 2020 -0700

    macos: dont clear the delegate
    
    We actually need some more notifications and this doesn't seem to be
    happening for me on Catalina. We can check other releases later when we
    look at supporting legacy releases.

 gdk/macos/GdkMacosWindow.c | 9 ---------
 1 file changed, 9 deletions(-)
---
diff --git a/gdk/macos/GdkMacosWindow.c b/gdk/macos/GdkMacosWindow.c
index f56119a949..108d6cb86b 100644
--- a/gdk/macos/GdkMacosWindow.c
+++ b/gdk/macos/GdkMacosWindow.c
@@ -37,15 +37,6 @@
 
 @implementation GdkMacosWindow
 
--(void)windowWillClose:(NSNotification*)notification
-{
-  /* Clears the delegate when window is going to be closed; since EL
-   * Capitan it is possible that the methods of delegate would get called
-   * after the window has been closed.
-   */
-  [self setDelegate:nil];
-}
-
 -(BOOL)windowShouldClose:(id)sender
 {
   GdkDisplay *display;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]