Moved clipboard changed event to CClientProxy because only it

and CServer use it.  CServerProxy instead makes a direct call
to CClient, like it does for most other messages.
This commit is contained in:
crs
2004-02-29 17:28:51 +00:00
parent 1ccb92b888
commit c3135b1b1c
7 changed files with 21 additions and 34 deletions

View File

@@ -386,10 +386,6 @@ CClient::setupScreen()
getEventTarget(),
new TMethodEventJob<CClient>(this,
&CClient::handleClipboardGrabbed));
EVENTQUEUE->adoptHandler(IScreen::getClipboardChangedEvent(),
getEventTarget(),
new TMethodEventJob<CClient>(this,
&CClient::handleClipboardChanged));
EVENTQUEUE->adoptHandler(CServerProxy::getHandshakeCompleteEvent(),
m_server,
new TMethodEventJob<CClient>(this,
@@ -453,8 +449,6 @@ CClient::cleanupScreen()
getEventTarget());
EVENTQUEUE->removeHandler(IScreen::getClipboardGrabbedEvent(),
getEventTarget());
EVENTQUEUE->removeHandler(IScreen::getClipboardChangedEvent(),
getEventTarget());
delete m_server;
m_server = NULL;
}
@@ -566,12 +560,6 @@ CClient::handleClipboardGrabbed(const CEvent& event, void*)
}
}
void
CClient::handleClipboardChanged(const CEvent&, void*)
{
// ignore -- we'll check the clipboard when we leave
}
void
CClient::handleHello(const CEvent&, void*)
{