forked from enlightenment/efl
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:
parent
e1dfa64159
commit
0e35734ef9
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue