diff options
Diffstat (limited to 'Source/SPTooltip.m')
-rw-r--r-- | Source/SPTooltip.m | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Source/SPTooltip.m b/Source/SPTooltip.m index b0344d52..5a0a2a2e 100644 --- a/Source/SPTooltip.m +++ b/Source/SPTooltip.m @@ -229,10 +229,9 @@ static CGFloat slow_in_out (CGFloat t) - (id)init; { - if(self = [self initWithContentRect:NSMakeRect(1,1,1,1) - styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO]) + if((self = [self initWithContentRect:NSMakeRect(1,1,1,1) + styleMask:NSBorderlessWindowMask backing:NSBackingStoreBuffered defer:NO])) { - ; } return self; } @@ -393,7 +392,7 @@ static CGFloat slow_in_out (CGFloat t) [keyWindow setAcceptsMouseMovedEvents:YES]; NSEvent* event = nil; NSInteger eventType; - while(event = [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate distantFuture] inMode:NSDefaultRunLoopMode dequeue:YES]) + while((event = [NSApp nextEventMatchingMask:NSAnyEventMask untilDate:[NSDate distantFuture] inMode:NSDefaultRunLoopMode dequeue:YES])) { eventType = [event type]; if(eventType == NSKeyDown || eventType == NSLeftMouseDown || eventType == NSRightMouseDown || eventType == NSOtherMouseDown || eventType == NSScrollWheel) |