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

View File

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