unset moveresize replace on unload

This commit is contained in:
Mike Blumenkrantz 2014-03-13 10:14:02 -04:00
parent beaf2eb8ff
commit 90fd3462fc
2 changed files with 3 additions and 1 deletions

View File

@ -54,7 +54,6 @@ e_modapi_init(E_Module *m)
mod->edje_file = eina_stringshare_add(buf);
ds_init();
e_moveresize_replace(EINA_TRUE);
mr_init();
maximize_init();

View File

@ -387,6 +387,8 @@ mr_init(void)
{
unsigned int x = 0;
e_moveresize_replace(EINA_TRUE);
ec_hooks[x++] = e_client_hook_add(E_CLIENT_HOOK_MOVE_BEGIN, move_begin, NULL);
ec_hooks[x++] = e_client_hook_add(E_CLIENT_HOOK_MOVE_UPDATE, move_update, NULL);
ec_hooks[x++] = e_client_hook_add(E_CLIENT_HOOK_MOVE_END, move_end, NULL);
@ -404,4 +406,5 @@ mr_shutdown(void)
for (; x < EC_HOOK_COUNT; x++)
E_FREE_FUNC(ec_hooks[x], e_client_hook_del);
clear_all();
e_moveresize_replace(EINA_FALSE);
}