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:
@@ -1425,7 +1425,7 @@ CServer::addClient(IClient* client)
|
||||
client->getEventTarget(),
|
||||
new TMethodEventJob<CServer>(this,
|
||||
&CServer::handleClipboardGrabbed, client));
|
||||
EVENTQUEUE->adoptHandler(IScreen::getClipboardChangedEvent(),
|
||||
EVENTQUEUE->adoptHandler(CClientProxy::getClipboardChangedEvent(),
|
||||
client->getEventTarget(),
|
||||
new TMethodEventJob<CServer>(this,
|
||||
&CServer::handleClipboardChanged, client));
|
||||
@@ -1454,7 +1454,7 @@ CServer::removeClient(IClient* client)
|
||||
client->getEventTarget());
|
||||
EVENTQUEUE->removeHandler(IScreen::getClipboardGrabbedEvent(),
|
||||
client->getEventTarget());
|
||||
EVENTQUEUE->removeHandler(IScreen::getClipboardChangedEvent(),
|
||||
EVENTQUEUE->removeHandler(CClientProxy::getClipboardChangedEvent(),
|
||||
client->getEventTarget());
|
||||
|
||||
// remove from list
|
||||
|
||||
Reference in New Issue
Block a user