summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Revest <revestflo@gmail.com>2015-07-27 17:21:57 +0200
committerNicolas Aguirre <aguirre.nicolas@gmail.com>2015-11-17 16:23:02 +0100
commit82bf1cefa2c1e46f3c7d11ea05596d2923c3d7b7 (patch)
tree9a2109324b36c1672f3a6a286d5f1b7330878428
parentac97b19b2865121e96bb8004943717632259b248 (diff)
wl_eglfs: enable gl acceleration, mouse, touchscreen and keyboard
-rw-r--r--src/modules/wl_eglfs/e_mod_main.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/modules/wl_eglfs/e_mod_main.c b/src/modules/wl_eglfs/e_mod_main.c
index 98b10b2d7..5c2470def 100644
--- a/src/modules/wl_eglfs/e_mod_main.c
+++ b/src/modules/wl_eglfs/e_mod_main.c
@@ -12,8 +12,9 @@ e_modapi_init(E_Module *m)
12 int w, h; 12 int w, h;
13 13
14 printf("LOAD WL_EGLFS MODULE\n"); 14 printf("LOAD WL_EGLFS MODULE\n");
15 e_util_env_set("HYBRIS_EGLPLATFORM", "fbdev");
15 16
16 /* try to init ecore_x */ 17 /* try to init ecore_fb */
17 if (!ecore_fb_init(NULL)) 18 if (!ecore_fb_init(NULL))
18 { 19 {
19 fprintf(stderr, "Could not initialize ecore_fb"); 20 fprintf(stderr, "Could not initialize ecore_fb");
@@ -24,6 +25,7 @@ e_modapi_init(E_Module *m)
24 ee = ecore_evas_eglfs_new(NULL, 0, w, h); 25 ee = ecore_evas_eglfs_new(NULL, 0, w, h);
25 26
26 e_comp->ee = ee; 27 e_comp->ee = ee;
28 e_comp_gl_set(!!e_comp->ee);
27 29
28 if (!e_xinerama_fake_screens_exist()) 30 if (!e_xinerama_fake_screens_exist())
29 { 31 {
@@ -39,8 +41,14 @@ e_modapi_init(E_Module *m)
39 e_comp_canvas_init(w, h); 41 e_comp_canvas_init(w, h);
40 e_comp->pointer = e_pointer_canvas_new(e_comp->ee, EINA_TRUE); 42 e_comp->pointer = e_pointer_canvas_new(e_comp->ee, EINA_TRUE);
41 43
44 e_comp_wl_input_pointer_enabled_set(EINA_TRUE);
45 e_comp_wl_input_keyboard_enabled_set(EINA_TRUE);
46 e_comp_wl_input_touch_enabled_set(EINA_TRUE);
47 e_comp_wl_input_keymap_set(NULL, NULL, NULL);
48
42 ecore_wl_init(NULL); 49 ecore_wl_init(NULL);
43 ecore_wl_server_mode_set(1); 50 ecore_wl_server_mode_set(1);
51 e_util_env_set("HYBRIS_EGLPLATFORM", "wayland");
44 return m; 52 return m;
45} 53}
46 54