aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTooltip.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-03-25 20:22:29 +0100
committerMax <post@wickenrode.com>2015-03-25 20:22:29 +0100
commit34383efe75a6f655522c9cb6385b3cb97cd99e3c (patch)
tree0215d8c3bf4109ed2325b7bf06529124e49cf2aa /Source/SPTooltip.m
parent9fd78af55a55a8a5a976a6b6f31839439cc28241 (diff)
downloadsequelpro-34383efe75a6f655522c9cb6385b3cb97cd99e3c.tar.gz
sequelpro-34383efe75a6f655522c9cb6385b3cb97cd99e3c.tar.bz2
sequelpro-34383efe75a6f655522c9cb6385b3cb97cd99e3c.zip
Fix an issue with certain tooltips being placed on the wrong screen in certain multi screen configurations
This did affect users with a vertical multi monitor setup using the classical (single Space) multi monitor mode.
Diffstat (limited to 'Source/SPTooltip.m')
-rw-r--r--Source/SPTooltip.m7
1 files changed, 5 insertions, 2 deletions
diff --git a/Source/SPTooltip.m b/Source/SPTooltip.m
index 0a7597f5..478945ed 100644
--- a/Source/SPTooltip.m
+++ b/Source/SPTooltip.m
@@ -320,8 +320,11 @@ static CGFloat slow_in_out (CGFloat t)
NSScreen* candidate;
for(candidate in [NSScreen screens])
{
- if(NSMinX([candidate frame]) < pos.x && NSMinX([candidate frame]) > NSMinX(screenFrame))
- screenFrame = [candidate frame];
+ NSRect cf = [candidate frame];
+ if(NSPointInRect(pos,cf)) {
+ screenFrame = cf;
+ break;
+ }
}
// is contentView a webView calculate actual rendered size via JavaScript