forked from enlightenment/enlightenment
Fix hibernate
This commit is contained in:
parent
9187778f32
commit
79fba3fa9a
|
@ -1,3 +1,7 @@
|
|||
2013-03-01 Sebastian Dransfeld
|
||||
|
||||
* Fix sys hibernate by checking raw condition first
|
||||
|
||||
2013-02-22 Mike Blumenkrantz
|
||||
|
||||
* compositor now allows user changing/remembering of object opacity
|
||||
|
|
|
@ -878,22 +878,21 @@ _e_sys_action_do(E_Sys_Action a, char *param __UNUSED__, Eina_Bool raw)
|
|||
}
|
||||
else
|
||||
{
|
||||
ecore_event_add(E_EVENT_SYS_HIBERNATE, NULL, NULL, NULL);
|
||||
if (_e_sys_hibernate_func)
|
||||
if (raw)
|
||||
{
|
||||
_e_sys_hibernate_func();
|
||||
return 0;
|
||||
_e_sys_susp_hib_check();
|
||||
if (e_config->desklock_on_suspend)
|
||||
e_desklock_show(EINA_TRUE);
|
||||
_e_sys_begin_time = ecore_time_get();
|
||||
_e_sys_exe = ecore_exe_run(buf, NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (raw)
|
||||
ecore_event_add(E_EVENT_SYS_HIBERNATE, NULL, NULL, NULL);
|
||||
if (_e_sys_hibernate_func)
|
||||
{
|
||||
if (e_config->desklock_on_suspend)
|
||||
e_desklock_show(EINA_TRUE);
|
||||
|
||||
_e_sys_susp_hib_check();
|
||||
_e_sys_begin_time = ecore_time_get();
|
||||
_e_sys_exe = ecore_exe_run(buf, NULL);
|
||||
_e_sys_hibernate_func();
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue