Fixed handling of screen resolution changes.

This commit is contained in:
crs
2004-05-16 18:04:36 +00:00
parent 5a1650914a
commit 93d74a1fda
3 changed files with 21 additions and 12 deletions

View File

@@ -334,7 +334,8 @@ CServerProxy::sendInfo(const CClientInfo& info)
LOG((CLOG_DEBUG1 "sending info shape=%d,%d %dx%d", info.m_x, info.m_y, info.m_w, info.m_h));
CProtocolUtil::writef(m_stream, kMsgDInfo,
info.m_x, info.m_y,
info.m_w, info.m_h, 0, 0, 0);
info.m_w, info.m_h, 0,
info.m_mx, info.m_my);
}
KeyID
@@ -779,6 +780,7 @@ CServerProxy::queryInfo()
{
CClientInfo info;
m_client->getShape(info.m_x, info.m_y, info.m_w, info.m_h);
m_client->getCursorPos(info.m_mx, info.m_my);
sendInfo(info);
}