Be resilient in case there is no device manager
authorEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 26 Apr 2012 12:23:29 +0000 (13:23 +0100)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 26 Apr 2012 12:56:00 +0000 (13:56 +0100)
commit26d8ad7479c04ba142460770fa577ea2a539a8b2
tree73bd12f46f6f9e59eb7b7ca7454a84b0fbe13b59
parentf7f81798982da89b8fe3de4b3dfaff4b94006dd2
Be resilient in case there is no device manager

It's possible to run Clutter with the 'null' input backend, which means
that clutter_device_manager_get_default() may return NULL. In the future
we may add a default dummy device manager, but right now it's safer to
just add a simple NULL check in the places where we ask for the device
manager.
clutter/clutter-main.c
clutter/gdk/clutter-event-gdk.c
clutter/osx/clutter-event-osx.c
clutter/win32/clutter-event-win32.c
clutter/x11/clutter-backend-x11.c
clutter/x11/clutter-stage-x11.c