fix: x11 get priority over wayland when both available 06/17206/2 accepted/tizen/generic/20140306.080216 accepted/tizen/ivi/20140306.205111 submit/tizen/20140306.075711
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>
Wed, 5 Mar 2014 09:53:45 +0000 (10:53 +0100)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Wed, 5 Mar 2014 13:18:53 +0000 (14:18 +0100)
(Could be squashed in 047b951d1963950298d6dd21a92fc8a870d784f3)

Change-Id: Ic49e6d952bf16ca96985ab3c3d078c93ffd049a5
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
src/lib/efl_assist_screen_reader.c

index d5740e5..76f8fc8 100644 (file)
@@ -121,18 +121,18 @@ static void _tts_init(void)
 
 static void _timeout_cb(void *data, Evas_Object *obj, void *event_info)
 {
-#ifdef HAVE_WAYLAND
-    Ecore_Wl_Window *w;
-#elif HAVE_X
-    Ecore_X_Window w;
+#ifdef HAVE_X
+   Ecore_X_Window w;
+#elif defined HAVE_WAYLAND
+   Ecore_Wl_Window *w;
 #endif
 
    unsigned int val;
 
-#ifdef HAVE_WAYLAND
-   w = elm_win_wl_window_get(data);
-#elif HAVE_X
+#ifdef HAVE_X
    w = elm_win_xwindow_get(data);
+#elif defined HAVE_WAYLAND
+   w = elm_win_wl_window_get(data);
 #endif
    if (!w) return;
 
@@ -153,10 +153,10 @@ static void _timeout_cb(void *data, Evas_Object *obj, void *event_info)
 EAPI Eina_Bool
 ea_screen_reader_support_set(Evas_Object *win, Eina_Bool support)
 {
-#ifdef HAVE_WAYLAND
-   Ecore_Wl_Window *w;
-#elif HAVE_X
+#ifdef HAVE_X
    Ecore_X_Window w;
+#elif defined HAVE_WAYLAND
+   Ecore_Wl_Window *w;
 #endif
    unsigned int val;
    int tts_val;