[clutter/clutter-1.16] backend: Do not use CLUTTER_WINDOWING_EGL unconditionally



commit 08ddd02bb239c1d79eff98cf77f4b237084aa1b3
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Sun Sep 15 10:28:58 2013 +0100

    backend: Do not use CLUTTER_WINDOWING_EGL unconditionally
    
    https://bugzilla.gnome.org/show_bug.cgi?id=708079

 clutter/clutter-backend.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/clutter/clutter-backend.c b/clutter/clutter-backend.c
index 2b6c429..be0c65f 100644
--- a/clutter/clutter-backend.c
+++ b/clutter/clutter-backend.c
@@ -562,8 +562,12 @@ clutter_backend_real_init_events (ClutterBackend *backend)
 #endif
 #ifdef CLUTTER_INPUT_EVDEV
   /* Evdev can be used regardless of the windowing system */
-  if ((input_backend != NULL && strcmp (input_backend, CLUTTER_INPUT_EVDEV) == 0) ||
-      clutter_check_windowing_backend (CLUTTER_WINDOWING_EGL))
+  if ((input_backend != NULL && strcmp (input_backend, CLUTTER_INPUT_EVDEV) == 0)
+#ifdef CLUTTER_WINDOWING_EGL
+      /* but we do want to always use it for EGL native */
+      || clutter_check_windowing_backend (CLUTTER_WINDOWING_EGL)
+#endif
+      )
     {
       _clutter_events_evdev_init (backend);
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]