Fixed a crashing bug Stippi's StressTest revealed: hidden (and especially,

removed and deleted) windows must not be the mouse event window (ie. while
dragging or resizing the window).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16749 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2006-03-12 21:49:35 +00:00
parent 3bb07059a4
commit e2c5e77531
+2
View File
@@ -1270,6 +1270,8 @@ Desktop::HideWindow(WindowLayer* window)
return;
window->SetHidden(true);
if (fMouseEventWindow == window)
fMouseEventWindow = NULL;
if (window->InWorkspace(fCurrentWorkspace)) {
_UpdateSubsetWorkspaces(window);