compositor-drm: Add proper error handling to init
authorDaniel Stone <daniel@fooishbar.org>
Fri, 22 Jun 2012 13:04:37 +0000 (14:04 +0100)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 22 Jun 2012 15:52:08 +0000 (11:52 -0400)
commita96b93c3bd9ad14c98555acdeadedc788b839fa0
tree5f813b09935a32c9c927b3014b82b224e7cdb885
parent725c2c3d680f4941b12834192c0fe2bbb0c01a1f
compositor-drm: Add proper error handling to init

This way, if initialisation fails (say, udev or Mesa are broken, or we
couldn't find any devices), we'll at least take you back to where you
were, rather than leave you at a totally broken VT you can't escape
from.

Signed-off-by: Daniel Stone <daniel@fooishbar.org>
src/compositor-drm.c