compositor: add WESTON_COMPOSITOR_OFFSCREEN state
authorPhilipp Brüschweiler <blei42@gmail.com>
Fri, 29 Mar 2013 12:01:56 +0000 (13:01 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 29 Mar 2013 18:05:27 +0000 (14:05 -0400)
commit57edf7f49ec9349f65b0e8cc330f9e6aa94f8a38
tree17d686ad63fc624dc092b1baf4fe8d400ece5b75
parentcee79e91f3efaecc8fb1982dfd70c9aa6dcf4a24
compositor: add WESTON_COMPOSITOR_OFFSCREEN state

This state is used when the user switches the vt. It turns of rendering
and frame events, but doesn't set the DPMS state to off.

As a part of this change, also turn off the idle timer when entering
the SLEEPING or OFFSCREEN states, which fixes
https://bugs.freedesktop.org/show_bug.cgi?id=61910 (rpi backend
untested).
src/compositor-drm.c
src/compositor-fbdev.c
src/compositor-rpi.c
src/compositor.c
src/compositor.h