summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2012-09-01 11:34:43 -0400
committerSøren Sandmann Pedersen <ssp@redhat.com>2012-09-07 12:06:07 -0400
commit7628b91a0b8b12dce3783623df58924b2ba43295 (patch)
tree18fd42b090cd88ccb3701821572f14cc49c7c98e
parent8855438ab64d025495007b941ac75f2078274c13 (diff)
downloadspice-7628b91a0b8b12dce3783623df58924b2ba43295.tar.gz
spice-7628b91a0b8b12dce3783623df58924b2ba43295.tar.xz
spice-7628b91a0b8b12dce3783623df58924b2ba43295.zip
Set a8 capability in the QXL device if supported by the client
-rw-r--r--server/red_worker.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/red_worker.c b/server/red_worker.c
index 75bc0453..81fffd74 100644
--- a/server/red_worker.c
+++ b/server/red_worker.c
@@ -10362,6 +10362,8 @@ static void handle_new_display_channel(RedWorker *worker, RedClient *client, Red
SET_CAP(caps, SPICE_DISPLAY_CAP_MONITORS_CONFIG);
if (red_channel_client_test_remote_cap(rcc, SPICE_DISPLAY_CAP_COMPOSITE))
SET_CAP(caps, SPICE_DISPLAY_CAP_COMPOSITE);
+ if (red_channel_client_test_remote_cap(rcc, SPICE_DISPLAY_CAP_A8_SURFACE))
+ SET_CAP(caps, SPICE_DISPLAY_CAP_A8_SURFACE);
worker->qxl->st->qif->set_client_capabilities(worker->qxl, TRUE, caps);
}