compositor-drm: Disable planes when zoomed or capturing
When the entire output is transformed or we're capturing the output
for screenshot or video, disable all output specific overlays
(drm planes, hw cursors etc) and move all surfaces into the primary
plane.
diff --git a/src/zoom.c b/src/zoom.c
index abb6f4e..b9db926 100644
--- a/src/zoom.c
+++ b/src/zoom.c
@@ -123,8 +123,10 @@
output->zoom.spring_z.current = 0.0;
if (weston_spring_done(&output->zoom.spring_z)) {
- if (output->zoom.level <= 0.0)
+ if (output->zoom.level <= 0.0) {
output->zoom.active = 0;
+ output->disable_planes--;
+ }
output->zoom.spring_z.current = output->zoom.level;
wl_list_remove(&animation->link);
wl_list_init(&animation->link);