mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-30 17:49:02 +00:00
server/red_worker: add cursor_channel_client_disconnect
makes RED_WORKER_MESSAGE_CURSOR_DISCONNECT_CLIENT disconnect only a single client.
This commit is contained in:
parent
c78e951bff
commit
969ab70413
@ -9797,6 +9797,15 @@ error:
|
||||
red_channel_client_destroy(&dcc->common.base);
|
||||
}
|
||||
|
||||
static void cursor_channel_client_disconnect(RedChannelClient *rcc)
|
||||
{
|
||||
if (!red_channel_is_connected(rcc->channel)) {
|
||||
return;
|
||||
}
|
||||
red_reset_cursor_cache(rcc);
|
||||
red_channel_client_disconnect(rcc);
|
||||
}
|
||||
|
||||
static void red_disconnect_cursor(RedChannel *channel)
|
||||
{
|
||||
CommonChannel *common;
|
||||
@ -10482,7 +10491,7 @@ static void handle_dev_input(EventListener *listener, uint32_t events)
|
||||
|
||||
red_printf("disconnect cursor client");
|
||||
receive_data(worker->channel, &rcc, sizeof(RedChannelClient *));
|
||||
red_disconnect_cursor(rcc->channel); /* TODO - assumes a single client */
|
||||
cursor_channel_client_disconnect(rcc);
|
||||
message = RED_WORKER_MESSAGE_READY;
|
||||
write_message(worker->channel, &message);
|
||||
break;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user