ecore-drm: Update device active state on VT switch and use new output_disable function
authorChris Michael <cp.michael@samsung.com>
Tue, 7 Apr 2015 18:22:59 +0000 (14:22 -0400)
committerStefan Schmidt <s.schmidt@samsung.com>
Fri, 10 Apr 2015 09:09:50 +0000 (11:09 +0200)
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>
src/lib/ecore_drm/ecore_drm_logind.c

index d45ded7..0a94885 100644 (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)