diff options
author | Kristian Høgsberg <krh@bitplanet.net> | 2012-08-03 15:45:23 -0400 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-08-03 16:33:42 -0400 |
commit | 79af73e313c732ff9e5bb997a617d0a172844284 (patch) | |
tree | 847ea7fca75e1e865282bb93f388055b6992c0c9 /src/zoom.c | |
parent | bcf4864bb76963059f8ca983103e9031adc719e8 (diff) | |
download | weston-79af73e313c732ff9e5bb997a617d0a172844284.tar.gz |
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.
Diffstat (limited to 'src/zoom.c')
-rw-r--r-- | src/zoom.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -123,8 +123,10 @@ weston_zoom_frame_z(struct weston_animation *animation, 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); |