Skip to content

Commit

Permalink
UI|Home: Don't open task bar when returning Home, just show mouse cursor
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 26, 2016
1 parent 9d2c130 commit cabea51
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions doomsday/apps/client/src/clientapp.cpp
Expand Up @@ -361,7 +361,7 @@ DENG2_PIMPL(ClientApp)
infineSys.deinitBindingContext();
}

void currentGameChanged(Game const &)
void currentGameChanged(Game const &newGame)
{
if(Sys_IsShuttingDown()) return;

Expand All @@ -377,14 +377,13 @@ DENG2_PIMPL(ClientApp)
*/
inputSys->clearEvents();

if(!App_GameLoaded())
if(newGame.isNull())
{
ClientWindow::main().taskBar().open();
}
else
{
ClientWindow::main().console().zeroLogHeight();
// The mouse is free while in the Home.
ClientWindow::main().canvas().trapMouse(false);
}

ClientWindow::main().console().zeroLogHeight();
}

/**
Expand Down

0 comments on commit cabea51

Please sign in to comment.