summaryrefslogtreecommitdiff
path: root/cocoa
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-02-10 15:27:08 +0000
committerVincent Sanders <vince@kyllikki.org>2016-02-10 15:27:08 +0000
commita63e902871cd60c09a585ddd3a7cbe576de8fcb0 (patch)
tree54a952e7254eca492db8f92c32b08c917c9bc806 /cocoa
parent3bee7b7e127be7b378a90569c63b82cde9fb20bc (diff)
downloadnetsurf-a63e902871cd60c09a585ddd3a7cbe576de8fcb0.tar.gz
netsurf-a63e902871cd60c09a585ddd3a7cbe576de8fcb0.tar.bz2
Prevent cocoa infinite event loop at startup
The PSMTabController framework was calling mouse exited events on its rollover button implementation which caused an inifinite recursion in event forwarding.
Diffstat (limited to 'cocoa')
-rw-r--r--cocoa/PSMTabBarControl/PSMRolloverButton.m6
1 files changed, 4 insertions, 2 deletions
diff --git a/cocoa/PSMTabBarControl/PSMRolloverButton.m b/cocoa/PSMTabBarControl/PSMRolloverButton.m
index e6f0816a2..8886560c7 100644
--- a/cocoa/PSMTabBarControl/PSMRolloverButton.m
+++ b/cocoa/PSMTabBarControl/PSMRolloverButton.m
@@ -94,9 +94,11 @@
_myTrackingRectTag = [self addTrackingRect:trackRect owner:self userData:nil assumeInside:mouseInside];
if(mouseInside) {
- [self mouseEntered:nil];
+ //[self mouseEntered:nil];
+ [self setImage:_rolloverImage];
} else{
- [self mouseExited:nil];
+ //[self mouseExited:nil];
+ [self setImage:_usualImage];
}
}