Skip to content
Browse files

Fix double-size window preview when dragging tabs on a retina screen

  • Loading branch information
rowanbeentje committed Feb 10, 2014
1 parent 5c8a9b1 commit 5c0212a51d21f06f3beb62059b0b17c6ee1d8c91
Showing with 1 addition and 0 deletions.
  1. +1 −0 Source/SPWindowControllerDelegate.m
@@ -384,6 +384,7 @@ - (NSImage *)tabView:(NSTabView *)aTabView imageForTabViewItem:(NSTabViewItem *)
// 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];

0 comments on commit 5c0212a

Please sign in to comment.
You can’t perform that action at this time.