summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Foreman <derekf@osg.samsung.com>2017-07-18 14:02:36 -0500
committerDerek Foreman <derekf@osg.samsung.com>2017-07-18 15:17:05 -0500
commit4077b3ce591069dc4f9fe239aa1a9128173d3c56 (patch)
tree8a42098e91656848172eed2525c8ee4739c2ba47
parent859d129edde78afc2be53197b8aef04af2e44b3e (diff)
downloadenlightenment-4077b3ce591069dc4f9fe239aa1a9128173d3c56.tar.gz
Don't block wayland client updates during screen saver fade out
We stop allowing client updates when the screensaver is on to save power, however this happens at the start of the fade-out. On wayland this stops any visible client change. If we wait until after the canvas is set to manual render instead then we get similar benefit but don't lose display updates while they're still visible. Fix T5714
-rw-r--r--src/bin/e_comp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c
index ae0b6138d4..1732c7cb73 100644
--- a/src/bin/e_comp.c
+++ b/src/bin/e_comp.c
@@ -321,7 +321,8 @@ _e_comp_client_update(E_Client *ec)
e_comp_object_render_update_add(ec->frame);
}
}
- if ((!e_comp->saver) && e_pixmap_size_get(ec->pixmap, &pw, &ph))
+ if (!(e_comp->saver && ecore_evas_manual_render_get(e_comp->ee)) &&
+ e_pixmap_size_get(ec->pixmap, &pw, &ph))
{
//INF("PX DIRTY: PX(%dx%d) CLI(%dx%d)", pw, ph, ec->client.w, ec->client.h);
e_pixmap_image_refresh(ec->pixmap);