backend: Unify the event initialization
authorEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 3 Nov 2011 17:53:54 +0000 (17:53 +0000)
committerEmmanuele Bassi <ebassi@linux.intel.com>
Thu, 10 Nov 2011 14:42:40 +0000 (14:42 +0000)
commitadb6ffbd0e67f1f43a7fbcd8df53a94fb7b241e8
tree006dcd9594adfbbf57bd8259743f1b859a815b70
parent84d208b2c6c774a27d7d00ef5136bf31ebe82310
backend: Unify the event initialization

Input backends are, in some cases, independent from the windowing system
backends; we can initialize input handling using a model similar to what
we use for windowing backends, including an environment variable and
compile-/run-time checks.

This model allows us to remove the backend-specific init_events(), and
use a generic implementation directly inside the base ClutterBackend
class, thus further reducing the backend-specific code that every
platform has to implement.

This requires some minor surgery to every single backend, to make sure
that the function exposed to initialize the event loop is similar and
performs roughly the same operations.
14 files changed:
clutter/clutter-backend.c
clutter/egl/clutter-backend-eglnative.c
clutter/gdk/clutter-backend-gdk.c
clutter/gdk/clutter-backend-gdk.h
clutter/gdk/clutter-event-gdk.c
clutter/osx/clutter-backend-osx.c
clutter/osx/clutter-backend-osx.h
clutter/osx/clutter-event-osx.c
clutter/wayland/clutter-backend-wayland.c
clutter/x11/clutter-backend-x11-private.h [deleted file]
clutter/x11/clutter-backend-x11.c
clutter/x11/clutter-backend-x11.h
clutter/x11/clutter-event-x11.c
configure.ac