aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPWindowControllerDelegate.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2014-02-10 01:39:25 +0000
committerrowanbeentje <rowan@beent.je>2014-02-10 01:39:25 +0000
commit5c0212a51d21f06f3beb62059b0b17c6ee1d8c91 (patch)
tree0995a27bf8b9190a6a08d2e1e403dfa3d1af9da0 /Source/SPWindowControllerDelegate.m
parent5c8a9b1a15ffd1ecf96340d3f43a4ca916665b9b (diff)
downloadsequelpro-5c0212a51d21f06f3beb62059b0b17c6ee1d8c91.tar.gz
sequelpro-5c0212a51d21f06f3beb62059b0b17c6ee1d8c91.tar.bz2
sequelpro-5c0212a51d21f06f3beb62059b0b17c6ee1d8c91.zip
Fix double-size window preview when dragging tabs on a retina screen
Diffstat (limited to 'Source/SPWindowControllerDelegate.m')
-rw-r--r--Source/SPWindowControllerDelegate.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/SPWindowControllerDelegate.m b/Source/SPWindowControllerDelegate.m
index 389f9b56..d8637ac4 100644
--- a/Source/SPWindowControllerDelegate.m
+++ b/Source/SPWindowControllerDelegate.m
@@ -384,6 +384,7 @@
// Capture an image of the entire window
CGImageRef windowImage = CGWindowListCreateImage(CGRectNull, kCGWindowListOptionIncludingWindow, (unsigned int)[[self window] windowNumber], kCGWindowImageBoundsIgnoreFraming);
NSBitmapImageRep *viewRep = [[NSBitmapImageRep alloc] initWithCGImage:windowImage];
+ [viewRep setSize:[[self window] frame].size];
[viewImage addRepresentation:viewRep];
[viewRep release];