diff options
author | Max <post@wickenrode.com> | 2015-03-25 20:22:29 +0100 |
---|---|---|
committer | Max <post@wickenrode.com> | 2015-03-25 20:22:29 +0100 |
commit | 34383efe75a6f655522c9cb6385b3cb97cd99e3c (patch) | |
tree | 0215d8c3bf4109ed2325b7bf06529124e49cf2aa | |
parent | 9fd78af55a55a8a5a976a6b6f31839439cc28241 (diff) | |
download | sequelpro-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.
-rw-r--r-- | Source/SPTooltip.m | 7 |
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 |