diff --git a/js/ui/workspace.js b/js/ui/workspace.js
index b618bb6..15fb51c 100644
--- a/js/ui/workspace.js
+++ b/js/ui/workspace.js
@@ -1155,6 +1155,14 @@ const Workspace = new Lang.Class({
             return true;
         }
 
+        for (let i = 0; i < this._windows.length; i++) {
+            let win = this._windows[i].actor;
+            let inWindow = (win.x < x && x < win.x + win.get_width() * win.scale_x &&
+                            win.y < y && y < win.y + win.get_height() * win.scale_y);
+            if (inWindow)
+                return true;
+        }
+
         this.positionWindows(WindowPositionFlags.ANIMATE);
         return false;
     },
