From f8e72504e558577eae9aef31bc7e2c859ed7b2d5 Mon Sep 17 00:00:00 2001 From: Alexandre Wilhelm Date: Wed, 9 Jan 2013 14:43:33 -0800 Subject: [PATCH] Fixed bug with closable button in CPWindow --- AppKit/CPWindow/_CPStandardWindowView.j | 1 + 1 file changed, 1 insertion(+) diff --git a/AppKit/CPWindow/_CPStandardWindowView.j b/AppKit/CPWindow/_CPStandardWindowView.j index b67ca1d4c..48bb5d858 100644 --- a/AppKit/CPWindow/_CPStandardWindowView.j +++ b/AppKit/CPWindow/_CPStandardWindowView.j @@ -180,6 +180,7 @@ var _CPStandardWindowViewBodyBackgroundColor = nil, { _closeButton = [[CPButton alloc] initWithFrame:CGRectMake(8.0, 8.0, 16.0, 16.0)]; + [_closeButton setButtonType:CPMomentaryChangeButton]; [_closeButton setBordered:NO]; [self _updateCloseButton];