From 268eb700165c498596e3199b3d4f7b3573f0ed22 Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Wed, 17 Jun 2015 15:08:27 -0700 Subject: [PATCH] [hwcomposer] Only update the attached screen --- backends/hwcomposer/hwcomposer_backend.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backends/hwcomposer/hwcomposer_backend.cpp b/backends/hwcomposer/hwcomposer_backend.cpp index e44976aaf2..72439503fc 100644 --- a/backends/hwcomposer/hwcomposer_backend.cpp +++ b/backends/hwcomposer/hwcomposer_backend.cpp @@ -588,10 +588,10 @@ void HwcomposerWindow::present() int oldrelease2 = m_list[0]->hwLayers[0].releaseFenceFd; hwc_composer_device_1_t *device = m_backend->device(); - if (device->prepare(device, HWC_NUM_DISPLAY_TYPES, m_list) != 0) { + if (device->prepare(device, 1, m_list) != 0) { qCWarning(KWIN_HWCOMPOSER) << "Error preparing hwcomposer for frame"; } - if (device->set(device, HWC_NUM_DISPLAY_TYPES, m_list) != 0) { + if (device->set(device, 1, m_list) != 0) { qCWarning(KWIN_HWCOMPOSER) << "Error setting device for frame"; }