summaryrefslogtreecommitdiff
path: root/services/surfaceflinger/SurfaceFlinger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'services/surfaceflinger/SurfaceFlinger.cpp')
-rw-r--r--services/surfaceflinger/SurfaceFlinger.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp
index 606355549e..6341f7ab1b 100644
--- a/services/surfaceflinger/SurfaceFlinger.cpp
+++ b/services/surfaceflinger/SurfaceFlinger.cpp
@@ -2881,7 +2881,7 @@ void SurfaceFlinger::updateInputWindowInfo() {
}
void SurfaceFlinger::commitInputWindowCommands() {
- mInputWindowCommands.merge(mPendingInputWindowCommands);
+ mInputWindowCommands = mPendingInputWindowCommands;
mPendingInputWindowCommands.clear();
}
@@ -3662,8 +3662,9 @@ void SurfaceFlinger::applyTransactionState(const Vector<ComposerState>& states,
if (flags & eAnimation) {
mAnimTransactionPending = true;
}
-
- mPendingSyncInputWindows = mPendingInputWindowCommands.syncInputWindows;
+ if (mPendingInputWindowCommands.syncInputWindows) {
+ mPendingSyncInputWindows = true;
+ }
// applyTransactionState can be called by either the main SF thread or by
// another process through setTransactionState. While a given process may wish