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/shell.c b/src/shell.c
index 545689c..6168a8e 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -2166,8 +2166,10 @@
output->zoom.level = 0.0;
else if (output->zoom.level > output->zoom.max_level)
output->zoom.level = output->zoom.max_level;
- else
+ else {
output->zoom.active = 1;
+ output->disable_planes++;
+ }
output->zoom.spring_z.target = output->zoom.level;