cogl-backend-egl: Chain up to the X11 backend init_events
authorNeil Roberts <neil@linux.intel.com>
Tue, 7 Dec 2010 23:32:47 +0000 (23:32 +0000)
committerNeil Roberts <neil@linux.intel.com>
Tue, 7 Dec 2010 23:32:47 +0000 (23:32 +0000)
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

index d9e74fa..36e26c5 100644 (file)
@@ -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