forked from enlightenment/enlightenment
have e disable screensaver on resume to force screen on
this fixes T1384
This commit is contained in:
parent
36c3d15c0b
commit
412095fe67
|
@ -436,3 +436,28 @@ e_screensaver_on_get(void)
|
|||
{
|
||||
return _e_screensaver_on;
|
||||
}
|
||||
|
||||
EAPI void
|
||||
e_screensaver_activate(void)
|
||||
{
|
||||
#ifndef HAVE_WAYLAND_ONLY
|
||||
if (e_comp_get(NULL)->comp_type == E_PIXMAP_TYPE_X)
|
||||
{
|
||||
ecore_x_screensaver_activate();
|
||||
}
|
||||
#else
|
||||
#endif
|
||||
}
|
||||
|
||||
EAPI void
|
||||
e_screensaver_deactivate(void)
|
||||
{
|
||||
#ifndef HAVE_WAYLAND_ONLY
|
||||
if (e_comp_get(NULL)->comp_type == E_PIXMAP_TYPE_X)
|
||||
{
|
||||
ecore_x_screensaver_reset();
|
||||
}
|
||||
#else
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -13,6 +13,9 @@ EAPI void e_screensaver_force_update(void);
|
|||
EAPI int e_screensaver_timeout_get(Eina_Bool use_idle);
|
||||
EAPI void e_screensaver_attrs_set(int timeout, int blanking, int expose);
|
||||
EAPI Eina_Bool e_screensaver_on_get(void);
|
||||
EAPI void e_screensaver_activate(void);
|
||||
EAPI void e_screensaver_deactivate(void);
|
||||
|
||||
EAPI extern int E_EVENT_SCREENSAVER_ON;
|
||||
EAPI extern int E_EVENT_SCREENSAVER_OFF;
|
||||
|
||||
|
|
|
@ -175,6 +175,7 @@ _e_sys_comp_resume(void)
|
|||
EINA_LIST_FOREACH(e_comp_list(), l, c)
|
||||
evas_damage_rectangle_add(c->evas, 0, 0, c->man->w, c->man->h);
|
||||
_e_sys_comp_emit_cb_wait(E_SYS_SUSPEND, "e,state,sys,resume", NULL, EINA_FALSE);
|
||||
e_screensaver_deactivate();
|
||||
}
|
||||
|
||||
/* externally accessible functions */
|
||||
|
|
Loading…
Reference in New Issue