From a8bd4e7ff0f4c33d827541a5628e4011598055ab Mon Sep 17 00:00:00 2001 From: crs Date: Tue, 14 Jan 2003 19:46:41 +0000 Subject: [PATCH] Moved log message into conditionals so it only appears when the conditions are true. --- lib/server/CServer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/server/CServer.cpp b/lib/server/CServer.cpp index 327475e3..d72b33c2 100644 --- a/lib/server/CServer.cpp +++ b/lib/server/CServer.cpp @@ -700,18 +700,21 @@ CServer::onMouseMoveSecondaryNoLock(SInt32 dx, SInt32 dy) } else { // clamp to edge when locked - LOG((CLOG_DEBUG1 "clamp to \"%s\"", m_active->getName().c_str())); if (m_x < ax) { m_x = ax; + LOG((CLOG_DEBUG1 "clamp to left of \"%s\"", m_active->getName().c_str())); } else if (m_x > ax + aw - 1) { m_x = ax + aw - 1; + LOG((CLOG_DEBUG1 "clamp to right of \"%s\"", m_active->getName().c_str())); } if (m_y < ay) { m_y = ay; + LOG((CLOG_DEBUG1 "clamp to top of \"%s\"", m_active->getName().c_str())); } else if (m_y > ay + ah - 1) { m_y = ay + ah - 1; + LOG((CLOG_DEBUG1 "clamp to bottom of \"%s\"", m_active->getName().c_str())); } }