settings: add startup_slave_screen option

This commit is contained in:
brezerk
2014-11-06 20:13:46 +01:00
committed by Andrzej Rybczak
parent a4e9523f63
commit cc747c0f99
10 changed files with 49 additions and 12 deletions

View File

@@ -130,6 +130,15 @@ int main(int argc, char **argv)
// initialize playlist
myPlaylist->switchTo();
// go to startup screen
if (Config.startup_screen_type != myScreen->type())
toScreen(Config.startup_screen_type)->switchTo();
// lock current screen and go to the slave one
if (Config.startup_slave_screen_type != myScreen->type())
if (myScreen->lock())
toScreen(Config.startup_slave_screen_type)->switchTo();
// local variables
bool key_pressed = false;