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
This commit is contained in:
parent
8c68eab694
commit
122a163324
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user