summaryrefslogtreecommitdiff
path: root/server/spice.h
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2013-04-23 09:57:39 +0200
committerHans de Goede <hdegoede@redhat.com>2013-04-24 09:31:27 +0200
commitf7f876a3cbf5f581f76e66e0972e75e11610e509 (patch)
treec73b06b9bb449f2de3c911ec83ab8e0779e5cd13 /server/spice.h
parent1013b7a5e4dc0805a4fa2b254b87cd56aa3bd157 (diff)
server: Add public spice_qxl_driver_unload method
With a SPICE_DISPLAY_CAP_MONITORS_CONFIG capable client, the client needs to know what part of the primary to use for each monitor. If the guest driver does not support this, the server sends messages to the client for a single monitor spanning the entire primary. As soon as the guest calls spice_qxl_monitors_config_async once, we set the red_worker driver_has_monitors_config flag and stop doing this. This is a problem when the driver gets unloaded, for example after a reboot or when switching to a text vc with usermode mode-setting under Linux. To reproduce this start a multi-mon capable Linux guest which uses usermode mode-setting and then once X has started switch to a text vc. Note how the client window does not only not resize, if you try to resize it manually you always keep blackborders since the aspect is wrong. This patch is the spice-server side of fixing this, it adds a new spice_qxl_driver_unload method which clears the driver_has_monitors_config flag. The other patch needed to fix this is in qemu, and will calls this new method from qxl_enter_vga_mode. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'server/spice.h')
-rw-r--r--server/spice.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/spice.h b/server/spice.h
index 45b7408c..18bd11a6 100644
--- a/server/spice.h
+++ b/server/spice.h
@@ -23,7 +23,7 @@
#include <spice/qxl_dev.h>
#include <spice/vd_agent.h>
-#define SPICE_SERVER_VERSION 0x000c02 /* release 0.12.2 */
+#define SPICE_SERVER_VERSION 0x000c03 /* release 0.12.3 */
/* interface base type */
@@ -167,6 +167,8 @@ void spice_qxl_flush_surfaces_async(QXLInstance *instance, uint64_t cookie);
/* since spice 0.12.0 */
void spice_qxl_monitors_config_async(QXLInstance *instance, QXLPHYSICAL monitors_config,
int group_id, uint64_t cookie);
+/* since spice 0.12.3 */
+void spice_qxl_driver_unload(QXLInstance *instance);
typedef struct QXLDrawArea {
uint8_t *buf;