Allows to have more than 1 QXL device

This was introduced with 96e94c6f32
(Convert RedChannel hierarchy to GObject).
The id of CursorChannel/DisplayChannel were always 0 causing
a wrong assertion on the code.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
Frediano Ziglio 2016-10-28 11:55:36 +01:00
parent 6fe8d5d49d
commit 2f18466293
2 changed files with 2 additions and 0 deletions

View File

@ -312,6 +312,7 @@ CursorChannel* cursor_channel_new(RedsState *server, QXLInstance *qxl,
"spice-server", server,
"core-interface", core,
"channel-type", SPICE_CHANNEL_CURSOR,
"id", qxl->id,
"migration-flags", 0,
"qxl", qxl,
"handle-acks", TRUE,

View File

@ -1988,6 +1988,7 @@ DisplayChannel* display_channel_new(RedsState *reds,
"spice-server", reds,
"core-interface", core,
"channel-type", SPICE_CHANNEL_DISPLAY,
"id", qxl->id,
"migration-flags",
(SPICE_MIGRATE_NEED_FLUSH | SPICE_MIGRATE_NEED_DATA_TRANSFER),
"qxl", qxl,