changeset 1026:f15dc5226c35

Fixed focus event was getting ignored because wrong handle passed to the event handler on Mac.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 20 May 2011 00:07:35 +0000
parents 3573878d1239
children cbac281970a9
files mac/dw.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Wed May 18 08:35:14 2011 +0000
+++ b/mac/dw.m	Fri May 20 00:07:35 2011 +0000
@@ -799,7 +799,7 @@
     {
         [DWApp setMainMenu:DWMainMenu];
     }
-    _event_handler(self, nil, 13);
+    _event_handler([self window], nil, 13);
 }
 -(void)setMenu:(NSMenu *)input { windowmenu = input; [windowmenu retain]; }
 -(void)menuHandler:(id)sender { _event_handler(sender, nil, 8); }