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>
This commit is contained in:
Chris Michael 2015-04-07 14:22:59 -04:00 committed by Stefan Schmidt
parent e1dfa64159
commit 0e35734ef9
1 changed files with 3 additions and 1 deletions

View File

@ -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)