Now leaving client screen or entering server screen if necessary

when disabling the screen.
This commit is contained in:
crs 2003-09-03 21:26:52 +00:00
parent a237cbacdb
commit 8395f69899
1 changed files with 6 additions and 0 deletions

View File

@ -93,6 +93,12 @@ CScreen::disable()
CLock lock(&m_mutex); CLock lock(&m_mutex);
assert(m_enabled); assert(m_enabled);
if (!m_isPrimary && m_entered) {
leave();
}
else if (m_isPrimary && !m_entered) {
enter();
}
m_screen->disable(); m_screen->disable();
if (m_isPrimary) { if (m_isPrimary) {
disablePrimary(); disablePrimary();