Skip to content

Commit

Permalink
Fix double-size window preview when dragging tabs on a retina screen
Browse files Browse the repository at this point in the history
  • Loading branch information
rowanbeentje committed Feb 10, 2014
1 parent 5c8a9b1 commit 5c0212a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/SPWindowControllerDelegate.m
Expand Up @@ -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];

Expand Down

0 comments on commit 5c0212a

Please sign in to comment.