reorder comp_x init

This commit is contained in:
Mike Blumenkrantz 2014-05-11 12:58:29 -04:00
parent dfd6ebd986
commit 16ad939ecb
1 changed files with 5 additions and 6 deletions

View File

@ -5089,12 +5089,6 @@ _e_comp_x_screens_setup(void)
EINTERN Eina_Bool
e_comp_x_init(void)
{
clients_win_hash = eina_hash_int32_new(NULL);
damages_hash = eina_hash_int32_new(NULL);
alarm_hash = eina_hash_int32_new(NULL);
frame_extents = eina_hash_string_superfast_new(free);
if (!ecore_x_init(NULL))
{
e_error_message_show(_("Enlightenment cannot initialize Ecore_X!\n"));
@ -5129,6 +5123,11 @@ e_comp_x_init(void)
}
ecore_x_screensaver_event_listen_set(1);
clients_win_hash = eina_hash_int32_new(NULL);
damages_hash = eina_hash_int32_new(NULL);
alarm_hash = eina_hash_int32_new(NULL);
frame_extents = eina_hash_string_superfast_new(free);
E_LIST_HANDLER_APPEND(handlers, E_EVENT_COMP_OBJECT_ADD, _e_comp_x_object_add, NULL);
E_LIST_HANDLER_APPEND(handlers, ECORE_X_EVENT_WINDOW_DESTROY, _e_comp_x_destroy, NULL);