Moved log message into conditionals so it only appears when the
conditions are true.
This commit is contained in:
parent
f7e936faa9
commit
a8bd4e7ff0
|
@ -700,18 +700,21 @@ CServer::onMouseMoveSecondaryNoLock(SInt32 dx, SInt32 dy)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
// clamp to edge when locked
|
// clamp to edge when locked
|
||||||
LOG((CLOG_DEBUG1 "clamp to \"%s\"", m_active->getName().c_str()));
|
|
||||||
if (m_x < ax) {
|
if (m_x < ax) {
|
||||||
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) {
|
else if (m_x > ax + aw - 1) {
|
||||||
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) {
|
if (m_y < ay) {
|
||||||
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) {
|
else if (m_y > ay + ah - 1) {
|
||||||
m_y = ay + ah - 1;
|
m_y = ay + ah - 1;
|
||||||
|
LOG((CLOG_DEBUG1 "clamp to bottom of \"%s\"", m_active->getName().c_str()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue