diff --git a/src/lib/deskflow/Screen.cpp b/src/lib/deskflow/Screen.cpp index f057d2d01..2d075c9cc 100644 --- a/src/lib/deskflow/Screen.cpp +++ b/src/lib/deskflow/Screen.cpp @@ -78,7 +78,7 @@ Screen::~Screen() // Perhaps it indicates that the cursor is still being controlled on the // client while it's shutting down? i.e. the screen is entered and is not the // server, or the screen is not entered and is the server. - if (m_entered == m_isPrimary) { + if (m_entered != m_isPrimary) { LOG( (CLOG_DEBUG "current screen: entered=%s, primary=%s", // m_entered ? "yes" : "no", m_isPrimary ? "yes" : "no")