init ecore-x during wl-x11 init to ensure DISPLAY is set

This commit is contained in:
Mike Blumenkrantz 2015-12-10 11:34:15 -05:00
parent a010138dcc
commit a03f80a845
1 changed files with 6 additions and 0 deletions

View File

@ -66,6 +66,11 @@ e_modapi_init(E_Module *m)
printf("LOAD WL_X11 MODULE\n");
if (!ecore_x_init(NULL))
{
fprintf(stderr, "X11 connect failed!\n");
return NULL;
}
e_comp_x_randr_canvas_new(ecore_x_window_root_first_get(), 1, 1);
if (!e_comp->ee)
@ -108,6 +113,7 @@ e_modapi_shutdown(E_Module *m EINA_UNUSED)
{
/* delete handler for keymap change */
if (kbd_hdlr) ecore_event_handler_del(kbd_hdlr);
ecore_x_shutdown();
return 1;
}