From 8395f698998378c343b9a093399f6959b28b02bb Mon Sep 17 00:00:00 2001 From: crs Date: Wed, 3 Sep 2003 21:26:52 +0000 Subject: [PATCH] Now leaving client screen or entering server screen if necessary when disabling the screen. --- lib/synergy/CScreen.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/synergy/CScreen.cpp b/lib/synergy/CScreen.cpp index ba3eb39b..42c5a1d6 100644 --- a/lib/synergy/CScreen.cpp +++ b/lib/synergy/CScreen.cpp @@ -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();