output: save and restore crtc upon (de)activation
authorRan Benita <ran234@gmail.com>
Mon, 28 Nov 2011 22:27:30 +0000 (00:27 +0200)
committerDavid Herrmann <dh.herrmann@googlemail.com>
Thu, 1 Dec 2011 15:39:06 +0000 (16:39 +0100)
commitaacb3420923d7b8cb1ceedf091c013974c49d3f1
tree4242517fb7dd52f64d2597ca6936ca501f92d626
parent25b85f5f26d7d87a530fa91ec7eb0bc871603a44
output: save and restore crtc upon (de)activation

The crtc is saved from kmscon_output_activate, and restored from
kmscon_output_deactivate.
This means that when the program exits, the screen is back to what it
was - we don't need to switch back VTs if we started the program from an
fbcon, etc.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
src/output.c