mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-08 21:14:11 +00:00
dc: dcc used is always a value from current link
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
a3ad49b326
commit
7447a9e66c
@ -479,19 +479,17 @@ static int current_add_equal(DisplayChannel *display, DrawItem *item, TreeItem *
|
||||
dpi_ring_item = ring_get_head(&other_drawable->pipes);
|
||||
/* dpi contains a sublist of dcc's, ordered the same */
|
||||
while (link) {
|
||||
dcc = link->data;
|
||||
dpi = SPICE_UPCAST(RedDrawablePipeItem, dpi_ring_item);
|
||||
for (;;) {
|
||||
if (!link) {
|
||||
goto out_loop;
|
||||
}
|
||||
dcc = link->data;
|
||||
if (dpi && dcc == dpi->dcc) {
|
||||
break;
|
||||
}
|
||||
dcc_prepend_drawable(dcc, drawable);
|
||||
link = link->next;
|
||||
if (link)
|
||||
dcc = link->data;
|
||||
}
|
||||
|
||||
if (dpi_ring_item) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user