From ff06207d9cb68d80f61aa67c01725ca3b230bc52 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Mon, 12 May 2014 14:07:06 +0100 Subject: [PATCH] make keymap match what drm uses by default NB: this is all in the process of getting fixed... Signed-off-by: Chris Michael --- src/modules/wl_drm/e_mod_main.c | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/src/modules/wl_drm/e_mod_main.c b/src/modules/wl_drm/e_mod_main.c index 5973a60d2..f817cdf6e 100644 --- a/src/modules/wl_drm/e_mod_main.c +++ b/src/modules/wl_drm/e_mod_main.c @@ -1,7 +1,7 @@ #include "e.h" #include "e_comp_wl.h" -#include -//#include +#include "e_comp_wl_input.h" +/* #include */ #define SCREEN_WIDTH 1920 #define SCREEN_HEIGHT 1200 @@ -56,9 +56,23 @@ e_modapi_init(E_Module *m) e_comp_wl_input_pointer_enabled_set(comp->comp_data, EINA_TRUE); e_comp_wl_input_keyboard_enabled_set(comp->comp_data, EINA_TRUE); + /* comp->pointer = */ + /* e_pointer_window_new(ecore_evas_window_get(comp->ee), 1); */ comp->pointer = e_pointer_canvas_new(comp->evas, 1); comp->pointer->color = 1; + /* FIXME: We need a way to trap for user changing the keymap inside of E + * without the event coming from X11 */ + + /* FIXME: We should make a decision here ... + * + * Fetch the keymap from drm, OR set this to what the E config is.... + */ + + /* FIXME: This is just for testing at the moment.... + * happens to jive with what drm does */ + e_comp_wl_input_keymap_set(comp->comp_data, NULL, NULL, NULL); + return m; }