From 1d7a7585c76c214bf82bc8a3fc32bc33d7083527 Mon Sep 17 00:00:00 2001 From: KoljaFrahm Date: Sat, 29 Aug 2026 15:31:15 +0200 Subject: [PATCH] fix: correct wrong screen entered warning In #7437, we replaced an assert with an if for logging, but forgot to negate the if clause --- src/lib/deskflow/Screen.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")