diff options
author | Chris Michael <cp.michael@samsung.com> | 2015-04-07 14:24:46 -0400 |
---|---|---|
committer | Stefan Schmidt <s.schmidt@samsung.com> | 2015-04-10 11:09:50 +0200 |
commit | e3440c4683143011f52e092eb722f4a8cabd454e (patch) | |
tree | f1efced7209adb2b7b30510e5d59ba422ccfe776 /src/lib/ecore_drm/ecore_drm_device.c | |
parent | 0e35734ef9edb59b92ca6da9b6d8eba48453d819 (diff) |
ecore-drm: Skip repaints if we are VT switched away
Summary: This allows us to skip output rendering if we are VT switched
away.
@fix
Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm/ecore_drm_device.c')
-rw-r--r-- | src/lib/ecore_drm/ecore_drm_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_drm/ecore_drm_device.c b/src/lib/ecore_drm/ecore_drm_device.c index 0eeb7c5a68..12f55ab2a0 100644 --- a/src/lib/ecore_drm/ecore_drm_device.c +++ b/src/lib/ecore_drm/ecore_drm_device.c | |||
@@ -84,7 +84,7 @@ _ecore_drm_device_cb_idle(void *data) | |||
84 | 84 | ||
85 | if (!(dev = data)) return ECORE_CALLBACK_CANCEL; | 85 | if (!(dev = data)) return ECORE_CALLBACK_CANCEL; |
86 | 86 | ||
87 | /* TODO: skip repaints if we are VT-switched away */ | 87 | if (!dev->active) return ECORE_CALLBACK_RENEW; |
88 | 88 | ||
89 | EINA_LIST_FOREACH(dev->outputs, l, output) | 89 | EINA_LIST_FOREACH(dev->outputs, l, output) |
90 | { | 90 | { |