have e disable screensaver on resume to force screen on

this fixes T1384
devs/devilhorns/xwayland
Carsten Haitzler 9 years ago
parent 36c3d15c0b
commit 412095fe67
  1. 25
      src/bin/e_screensaver.c
  2. 3
      src/bin/e_screensaver.h
  3. 1
      src/bin/e_sys.c

@ -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…
Cancel
Save