1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:27:45 +00:00

SpiceAgent: Implement ClipboardRequest messages

This commit is contained in:
Caoimhe 2023-05-13 13:44:10 +01:00 committed by Andreas Kling
parent 8202f13169
commit 9c4538a9a8
3 changed files with 50 additions and 0 deletions

View file

@ -74,6 +74,10 @@ ErrorOr<void> SpiceAgent::on_message_received()
break;
dbgln_if(SPICE_AGENT_DEBUG, "The spice server has notified us of new clipboard data of type: {}", data_type);
dbgln_if(SPICE_AGENT_DEBUG, "Sending a request for data of type: {}", data_type);
auto request_message = ClipboardRequestMessage(data_type);
TRY(this->send_message(request_message));
break;
}