diff options
author | Chris Michael <cp.michael@samsung.com> | 2015-04-07 14:22:59 -0400 |
---|---|---|
committer | Chris Michael <cp.michael@samsung.com> | 2015-04-08 14:03:49 -0400 |
commit | 8bea018adcf47efe1631b7de08eb2f562e805278 (patch) | |
tree | af9b2d73a47cb82301154deda29c89c50af14a1d | |
parent | 36f79649e7d4a4b5638ec4288c42149041469646 (diff) | |
download | efl-8bea018adcf47efe1631b7de08eb2f562e805278.tar.gz |
ecore-drm: Update device active state on VT switch and use new output_disable function
Summary: This marks an Ecore_Drm_Device as active or not when we VT
switch. We do this so we can skip rendering if we are not active.
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
-rw-r--r-- | src/lib/ecore_drm/ecore_drm_logind.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_logind.c b/src/lib/ecore_drm/ecore_drm_logind.c index d45ded726a..0a94885052 100644 --- a/src/lib/ecore_drm/ecore_drm_logind.c +++ b/src/lib/ecore_drm/ecore_drm_logind.c @@ -144,6 +144,8 @@ _ecore_drm_logind_cb_activate(void *data, int type EINA_UNUSED, void *event) ev = event; dev = data; + dev->active = ev->active; + if (ev->active) { /* set output mode */ @@ -164,7 +166,7 @@ _ecore_drm_logind_cb_activate(void *data, int type EINA_UNUSED, void *event) /* disable hardware cursor */ EINA_LIST_FOREACH(dev->outputs, l, output) - ecore_drm_output_cursor_size_set(output, 0, 0, 0); + ecore_drm_output_disable(output); /* disable sprites */ EINA_LIST_FOREACH(dev->sprites, l, sprite) |