backend: Do not use CLUTTER_WINDOWING_EGL unconditionally

https://bugzilla.gnome.org/show_bug.cgi?id=708079
This commit is contained in:
Emmanuele Bassi 2013-09-15 10:28:58 +01:00
parent 9b5b432533
commit 08ddd02bb2

View File

@ -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);
}