static char *_desklock_auth_get_current_host(void);
#endif
+EAPI int E_EVENT_DESKLOCK_SHOW = 0;
+EAPI int E_EVENT_DESKLOCK_HIDE = 0;
+
EAPI int
e_desklock_init(void)
{
if (e_config->desklock_background)
e_filereg_register(e_config->desklock_background);
+ E_EVENT_DESKLOCK_SHOW = ecore_event_type_new();
+ E_EVENT_DESKLOCK_HIDE = ecore_event_type_new();
+
return 1;
}
ecore_event_handler_add(ECORE_X_EVENT_MOUSE_WHEEL,
_e_desklock_cb_mouse_wheel,
NULL));
- if (total_zone_num > 1 && e_config->desklock_login_box_zone == -2 )
+ if ((total_zone_num > 1) && (e_config->desklock_login_box_zone == -2))
edd->handlers = evas_list_append(edd->handlers,
ecore_event_handler_add(ECORE_X_EVENT_MOUSE_MOVE,
_e_desklock_cb_mouse_move,
NULL));
_e_desklock_passwd_update();
+ ecore_event_add(E_EVENT_DESKLOCK_SHOW, NULL, NULL, NULL);
return 1;
}
E_FREE(edd);
edd = NULL;
+ ecore_event_add(E_EVENT_DESKLOCK_HIDE, NULL, NULL, NULL);
}
static int
EAPI int e_desklock_show(void);
EAPI void e_desklock_hide(void);
+extern EAPI int E_EVENT_DESKLOCK_SHOW;
+extern EAPI int E_EVENT_DESKLOCK_HIDE;
+
#endif
#endif