X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/300a07d55a963cc39d6fdc8152a2651b55054055..42b847502c82d792abc80f9ca3b568fb84572780:/StatusWindowController.m diff --git a/StatusWindowController.m b/StatusWindowController.m index b89d4e4..5533c5f 100755 --- a/StatusWindowController.m +++ b/StatusWindowController.m @@ -36,6 +36,8 @@ static StatusWindowController *sharedController; NSArray *classList = [ITWindowEffect effectClasses]; float entrySpeed; float exitSpeed; + NSArray *screens = [NSScreen screens]; + int screenIndex; NSData *colorData; @@ -50,7 +52,13 @@ static StatusWindowController *sharedController; exitClass = [df stringForKey:@"statusWindowVanishEffect"]; entrySpeed = [df floatForKey:@"statusWindowAppearanceSpeed"]; exitSpeed = [df floatForKey:@"statusWindowVanishSpeed"]; - + + screenIndex = [df integerForKey:@"statusWindowScreenIndex"]; + if (screenIndex >= [screens count]) { + screenIndex = 0; + } + [_window setScreen:[screens objectAtIndex:screenIndex]]; + [_window setExitMode:ITTransientStatusWindowExitAfterDelay]; [_window setExitDelay:(exitDelay ? exitDelay : 4.0)];