Should send "closed" event when native window is closed.

This commit is contained in:
Cheng Zhao 2014-04-23 10:24:46 +08:00
parent 8417f158b4
commit 1cb23a958c
5 changed files with 8 additions and 6 deletions

View file

@ -65,6 +65,7 @@ static const CGFloat kAtomWindowCornerRadius = 4.0;
}
- (void)windowWillClose:(NSNotification*)notification {
shell_->NotifyWindowClosed();
[self autorelease];
}