From 5c0212a51d21f06f3beb62059b0b17c6ee1d8c91 Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Mon, 10 Feb 2014 01:39:25 +0000 Subject: Fix double-size window preview when dragging tabs on a retina screen --- Source/SPWindowControllerDelegate.m | 1 + 1 file changed, 1 insertion(+) 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]; -- cgit v1.2.3