From 0acea04d71f28e98b15620e31902dd8e2196c637 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Thu, 7 Jun 2012 15:04:51 +0300 Subject: server: add monitors_config support a SpiceMsgDisplayMonitorsConfig is sent on two occasions: * as a result of a spice_qxl_monitors_config_async * whenever a client connects and there is a previously set monitors config Sending the new message is protected by a new cap, SPICE_DISPLAY_CAP_MONITORS_CONFIG More elaborately: spice_qxl_monitors_config_async receives a QXLPHYSICAL address of a QXLMonitorsConfig struct and reads it, caching it in the RedWorker, and sending it to all clients. Whenever a new client connects it receives a SpiceMsgDisplayMonitorsConfig message as well. --- server/red_worker.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'server/red_worker.h') diff --git a/server/red_worker.h b/server/red_worker.h index fd23ede9..6c5b839f 100644 --- a/server/red_worker.h +++ b/server/red_worker.h @@ -85,6 +85,8 @@ enum { RED_WORKER_MESSAGE_DISPLAY_CHANNEL_CREATE, RED_WORKER_MESSAGE_CURSOR_CHANNEL_CREATE, + RED_WORKER_MESSAGE_MONITORS_CONFIG_ASYNC, + RED_WORKER_MESSAGE_COUNT // LAST }; -- cgit