From 122a163324cb99cf3a01d8cd686694e6c4105e1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Tue, 17 Oct 2006 20:52:03 +0000 Subject: [PATCH] The mouse event window will already be reset in RemoveWindow() (through HideWindow()); doing it here is not only superfluous, it would also cause to lose the window when switching to a workspace where the window is not visible and back while dragging it around. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19076 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/servers/app/Desktop.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/servers/app/Desktop.cpp b/src/servers/app/Desktop.cpp index 846414cdc7..fdfb5ef2f9 100644 --- a/src/servers/app/Desktop.cpp +++ b/src/servers/app/Desktop.cpp @@ -1008,9 +1008,6 @@ Desktop::_UpdateFloating(int32 previousWorkspace, int32 nextWorkspace, } else if (_Windows(previousWorkspace).HasWindow(floating)) { // was visible, but is no longer - if (fMouseEventWindow == floating) - fMouseEventWindow = NULL; - _Windows(previousWorkspace).RemoveWindow(floating); floating->SetCurrentWorkspace(-1); _HideWindow(floating);