From c9ff3b1434c38927d9fee8d671abb599ba2a6509 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 22 Apr 2015 18:12:22 -0400 Subject: [PATCH] create wl-x11 canvas using comp_x canvas creation method --- src/modules/wl_x11/e_mod_main.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/modules/wl_x11/e_mod_main.c b/src/modules/wl_x11/e_mod_main.c index 8efd490..2d298b1 100644 --- a/src/modules/wl_x11/e_mod_main.c +++ b/src/modules/wl_x11/e_mod_main.c @@ -65,21 +65,19 @@ _cb_keymap_changed(void *data, int type EINA_UNUSED, void *event EINA_UNUSED) EAPI void * e_modapi_init(E_Module *m) { - Ecore_Evas *ee; E_Screen *screen; int w = 0, h = 0; printf("LOAD WL_X11 MODULE\n"); - ee = ecore_evas_software_x11_new(NULL, 0, 0, 0, 1, 1); - ecore_evas_callback_delete_request_set(ee, _cb_delete_request); + e_comp_x_randr_canvas_new(ecore_x_window_root_first_get(), 1, 1); - e_comp->ee = ee; if (!e_comp->ee) { ERR("Could not create ecore_evas canvas"); return NULL; } + ecore_evas_callback_delete_request_set(e_comp->ee, _cb_delete_request); ecore_evas_screen_geometry_get(e_comp->ee, NULL, NULL, &w, &h); -- 2.7.4