if the layer is in order of some screen we need to remove it
from there and mark the screen order as dirty so it will be removed
in commit_screen_list call later
layer should only be assigned to one screen at a time
Signed-off-by: Eugen Friedrich <efriedrich@de.adit-jv.com>
Signed-off-by: Emre Ucan <eucan@de.adit-jv.com>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
iviscrn = get_screen_from_output(output);
+ /*if layer is already assigned to screen make order of it dirty
+ * we are going to remove it (in commit_screen_list)*/
+ if (addlayer->on_screen)
+ addlayer->on_screen->order.dirty = 1;
+
wl_list_remove(&addlayer->pending.link);
wl_list_insert(&iviscrn->pending.layer_list, &addlayer->pending.link);