Commit 37089177 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: disable window restoration on relaunch for playlist and video windows

parent a77a1283
......@@ -135,6 +135,10 @@
view_rect.size.width,
view_rect.size.height )];
}
/* we don't want this window to be restored on relaunch */
if ([self respondsToSelector:@selector(setRestorable:)])
[self setRestorable:NO];
}
- (void)controlTintChanged
......
......@@ -227,7 +227,12 @@ static NSMutableArray *blackoutWindows = NULL;
{
self = [super initWithContentRect:contentRect styleMask:styleMask backing:backingType defer:flag];
if( self )
{
b_isset_canBecomeKeyWindow = NO;
/* we don't want this window to be restored on relaunch */
if ([self respondsToSelector:@selector(setRestorable:)])
[self setRestorable:NO];
}
return self;
}
- (void)setCanBecomeKeyWindow: (BOOL)canBecomeKey
......@@ -427,6 +432,11 @@ static NSMutableArray *blackoutWindows = NULL;
[self setContentBorderThickness:28.0 forEdge:NSMinYEdge];
}
*/
/* we don't want this window to be restored on relaunch */
if ([self respondsToSelector:@selector(setRestorable:)])
[self setRestorable:NO];
return self;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment