forked from enlightenment/enlightenment
parent
c231a0ea8e
commit
26296cdb16
|
@ -1,3 +1,6 @@
|
|||
/*
|
||||
* vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
|
||||
*/
|
||||
#include "e.h"
|
||||
#ifdef HAVE_PAM
|
||||
# include <security/pam_appl.h>
|
||||
|
@ -97,7 +100,7 @@ e_desklock_init(void)
|
|||
ecore_x_screensaver_expose_set(!e_config->desklock_use_custom_screensaver);
|
||||
|
||||
if (e_config->desklock_background)
|
||||
e_filereg_register(e_config->desklock_background);
|
||||
e_filereg_register(e_config->desklock_background);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
@ -107,7 +110,7 @@ e_desklock_shutdown(void)
|
|||
{
|
||||
e_desklock_hide();
|
||||
if (e_config->desklock_background)
|
||||
e_filereg_deregister(e_config->desklock_background);
|
||||
e_filereg_deregister(e_config->desklock_background);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
@ -315,7 +318,7 @@ e_desklock_show(void)
|
|||
edd->elock_wnd_list = evas_list_append(edd->elock_wnd_list, edp);
|
||||
}
|
||||
|
||||
zone_counter ++;
|
||||
zone_counter++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -351,10 +354,10 @@ e_desklock_hide(void)
|
|||
if ((!edd) && (!_e_custom_saver_exe)) return;
|
||||
|
||||
if (e_config->desklock_use_custom_screensaver)
|
||||
{
|
||||
_e_custom_saver_exe = NULL;
|
||||
return;
|
||||
}
|
||||
{
|
||||
_e_custom_saver_exe = NULL;
|
||||
return;
|
||||
}
|
||||
|
||||
if (edd->elock_grab_break_wnd)
|
||||
ecore_x_window_show(edd->elock_grab_break_wnd);
|
||||
|
@ -776,9 +779,9 @@ _e_desklock_cb_custom_saver_exit(void *data, int type, void *event)
|
|||
if (ev->exe != _e_custom_saver_exe) return 1;
|
||||
|
||||
if (ev->exit_code != 0)
|
||||
{
|
||||
/* do something profound here... like notify someone */
|
||||
}
|
||||
{
|
||||
/* do something profound here... like notify someone */
|
||||
}
|
||||
|
||||
/*
|
||||
* Miserable HACK alert!!!
|
||||
|
|
|
@ -755,7 +755,7 @@ _e_manager_cb_screensaver_notify(void *data, int ev_type __UNUSED__, void *ev)
|
|||
if (e->on)
|
||||
{
|
||||
if ((e_config->desklock_autolock) || (e_config->desklock_use_custom_screensaver))
|
||||
e_desklock_show();
|
||||
e_desklock_show();
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue