From ca7dc2f951f1d5cc59c364a186aa065449c2b85f Mon Sep 17 00:00:00 2001 From: Neil Roberts Date: Tue, 7 Dec 2010 23:32:47 +0000 Subject: [PATCH] cogl-backend-egl: Chain up to the X11 backend init_events Since c6493885c3f18 when building the EGL backend for eglx there was no fallback in the init_events implementation so the X11 backend init function would never get called. This was stopping it from receiving any X events so a lot of things broke. It now just chains up. --- clutter/egl/clutter-backend-egl.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/clutter/egl/clutter-backend-egl.c b/clutter/egl/clutter-backend-egl.c index d9e74fae4..36e26c5ea 100644 --- a/clutter/egl/clutter-backend-egl.c +++ b/clutter/egl/clutter-backend-egl.c @@ -550,6 +550,11 @@ clutter_backend_egl_init_events (ClutterBackend *backend) #ifdef HAVE_EVDEV _clutter_events_evdev_init (CLUTTER_BACKEND (backend)); #endif +#ifdef COGL_HAS_X11_SUPPORT + /* Chain up to the X11 backend */ + CLUTTER_BACKEND_CLASS (_clutter_backend_egl_parent_class)-> + init_events (backend); +#endif } static void