am 09f82ec6: am af1255da: resolved conflicts for merge of 2624fbca to eclair-mr2

Merge commit '09f82ec61cca00bd8b08529a94139dd6ac5cec73'

* commit '09f82ec61cca00bd8b08529a94139dd6ac5cec73':
  Fix #2320798: Device hang then runtime restart
diff --git a/services/java/com/android/server/WindowManagerService.java b/services/java/com/android/server/WindowManagerService.java
index c5583e6..ea0b778 100644
--- a/services/java/com/android/server/WindowManagerService.java
+++ b/services/java/com/android/server/WindowManagerService.java
@@ -6009,14 +6009,14 @@
                         res.offsetLocation(-win.mFrame.left, -win.mFrame.top);
                     }
                 }
+            }
 
-                if (res != null && returnWhat == RETURN_PENDING_POINTER) {
-                    synchronized (mWindowMap) {
-                        if ((mWallpaperTarget == win &&
-                                win.mAttrs.type != WindowManager.LayoutParams.TYPE_KEYGUARD)
-                                || mSendingPointersToWallpaper) {
-                            sendPointerToWallpaperLocked(win, res, res.getEventTime());
-                        }
+            if (res != null && returnWhat == RETURN_PENDING_POINTER) {
+                synchronized (mWindowMap) {
+                    if ((mWallpaperTarget == win &&
+                            win.mAttrs.type != WindowManager.LayoutParams.TYPE_KEYGUARD)
+                            || mSendingPointersToWallpaper) {
+                        sendPointerToWallpaperLocked(win, res, res.getEventTime());
                     }
                 }
             }