| 181 | | } |
|---|
| | 181 | |
|---|
| | 182 | /* If we were selected via an area within our close button rect, we should update accordingly. When we originally received the mouseEntered: |
|---|
| | 183 | * event it was ignored because we weren't selected at the time. |
|---|
| | 184 | */ |
|---|
| | 185 | if (selected) { |
|---|
| | 186 | NSPoint localPoint; |
|---|
| | 187 | |
|---|
| | 188 | //Local mouse location |
|---|
| | 189 | localPoint = [[view window] convertScreenToBase:[NSEvent mouseLocation]]; |
|---|
| | 190 | localPoint = [view convertPoint:localPoint fromView:nil]; |
|---|
| | 191 | |
|---|
| | 192 | if (NSPointInRect(localPoint, [self _closeButtonRect])) { |
|---|
| | 193 | [self setHoveringClose:YES]; |
|---|
| | 194 | } |
|---|
| | 195 | } |
|---|
| | 196 | } |
|---|
| | 197 | |
|---|