If a plane is currently active on another output, don't steal it away.

Signed-off-by: Daniel Stone <dani...@collabora.com>
---
 src/compositor-drm.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/compositor-drm.c b/src/compositor-drm.c
index c9071d2..fa520bc 100644
--- a/src/compositor-drm.c
+++ b/src/compositor-drm.c
@@ -1054,6 +1054,9 @@ drm_output_repaint(struct weston_output *output_base,
                if (s->type != WDRM_PLANE_TYPE_OVERLAY)
                        continue;
 
+               if (s->output != output)
+                       continue;
+
                if ((!s->current && !s->next) ||
                    !drm_plane_crtc_supported(output, s->possible_crtcs))
                        continue;
-- 
2.4.3

_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to