summaryrefslogtreecommitdiffstats
path: root/services/java/com/android/server/wm/WindowManagerService.java
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2012-06-25 15:26:14 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-06-25 15:26:14 -0700
commita3a59a2fa7e3b3b044b41d2741118be37c57509a (patch)
tree570f113354356d3cd5d10b11626acbea2abac8d5 /services/java/com/android/server/wm/WindowManagerService.java
parentb032f9fc9d32ff4e73f8323573ca2c5e427e7a74 (diff)
parent08a746a0c60d19eb2211924ffd9fe1e452a261a6 (diff)
downloadframeworks_base-a3a59a2fa7e3b3b044b41d2741118be37c57509a.zip
frameworks_base-a3a59a2fa7e3b3b044b41d2741118be37c57509a.tar.gz
frameworks_base-a3a59a2fa7e3b3b044b41d2741118be37c57509a.tar.bz2
Merge "Don't enable input dispatch until display enabled." into jb-dev
Diffstat (limited to 'services/java/com/android/server/wm/WindowManagerService.java')
-rwxr-xr-xservices/java/com/android/server/wm/WindowManagerService.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/services/java/com/android/server/wm/WindowManagerService.java b/services/java/com/android/server/wm/WindowManagerService.java
index 73bfe8e..f84451e 100755
--- a/services/java/com/android/server/wm/WindowManagerService.java
+++ b/services/java/com/android/server/wm/WindowManagerService.java
@@ -5285,6 +5285,9 @@ public class WindowManagerService extends IWindowManager.Stub
} catch (RemoteException ex) {
Slog.e(TAG, "Boot completed: SurfaceFlinger is dead!");
}
+
+ // Enable input dispatch.
+ mInputMonitor.setEventDispatchingLw(mEventDispatchingEnabled);
}
mPolicy.enableScreenAfterBoot();
@@ -6636,7 +6639,8 @@ public class WindowManagerService extends IWindowManager.Stub
// -------------------------------------------------------------
final InputMonitor mInputMonitor = new InputMonitor(this);
-
+ private boolean mEventDispatchingEnabled;
+
public void pauseKeyDispatching(IBinder _token) {
if (!checkCallingPermission(android.Manifest.permission.MANAGE_APP_TOKENS,
"pauseKeyDispatching()")) {
@@ -6672,7 +6676,10 @@ public class WindowManagerService extends IWindowManager.Stub
}
synchronized (mWindowMap) {
- mInputMonitor.setEventDispatchingLw(enabled);
+ mEventDispatchingEnabled = enabled;
+ if (mDisplayEnabled) {
+ mInputMonitor.setEventDispatchingLw(enabled);
+ }
sendScreenStatusToClientsLocked();
}
}