mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-08 21:03:54 +08:00
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:
@@ -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*)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user