Skip to content

Commit

Permalink
don’t release Large Type windows on close
Browse files Browse the repository at this point in the history
fixes #2511
  • Loading branch information
skurfer committed May 26, 2020
1 parent ad14e47 commit 0ee243c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
8 changes: 0 additions & 8 deletions Quicksilver/Code-QuickStepInterface/QSLargeTypeDisplay.m
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ void QSShowLargeType(NSString *aString) {
[largeTypeWindow setOpaque:NO];
[largeTypeWindow setLevel:NSFloatingWindowLevel];
[largeTypeWindow setHidesOnDeactivate:NO];
[largeTypeWindow setReleasedWhenClosed:YES];
// [largeTypeWindow setNextResponder:self];

QSBezelBackgroundView *content = [[NSClassFromString(@"QSBezelBackgroundView") alloc] initWithFrame:NSZeroRect];
[content setRadius:32];
Expand All @@ -121,12 +119,6 @@ void QSShowLargeType(NSString *aString) {
#pragma mark QSVainishingWindow

@implementation QSVanishingWindow
- (id)initWithContentRect:(NSRect)contentRect styleMask:(NSWindowStyleMask)aStyle backing:(NSBackingStoreType)bufferingType defer:(BOOL)flag {
if (self = [super initWithContentRect:contentRect styleMask:aStyle backing:bufferingType defer:flag]) {
[self setReleasedWhenClosed:YES];
}
return self;
}

- (IBAction)copy:(id)sender {
NSPasteboard *pb = [NSPasteboard generalPasteboard];
Expand Down
2 changes: 1 addition & 1 deletion Quicksilver/Code-QuickStepInterface/QSTextViewer.m
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ - (id)initWithWindow:(id)window {
[window setContentView:textview];
[textview release];*/
[window setReleasedWhenClosed:YES];
[window center];
[(QSWindow *)window center];

NSScrollView *scrollview = [[NSScrollView alloc] initWithFrame:[[window contentView] frame]];
[scrollview setBorderType:NSNoBorder];
Expand Down

0 comments on commit 0ee243c

Please sign in to comment.