Fix for not being able to drag window from spaces in toolbar.

Reviewed by me.
This commit is contained in:
Francisco Ryan Tolmasky I committed 2009-11-18 22:08:57 -08:00
1 parent 52c18abc5e
commit 2d367a8b47
1 file changed
+8 -1
+8 -1
View File
@@ -957,7 +957,14 @@ var TOP_MARGIN = 5.0,
- (void)mouseDown:(CPEvent)anEvent
{
if ([_toolbarItem view])
return;
return [[self nextResponder] mouseDown:anEvent];
var identifier = [_toolbarItem itemIdentifier];
if (identifier === CPToolbarSpaceItemIdentifier ||
identifier === CPToolbarFlexibleSpaceItemIdentifier ||
identifier === CPToolbarSeparatorItemIdentifier)
return [[self nextResponder] mouseDown:anEvent];
[super mouseDown:anEvent];
}