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:
@@ -1270,6 +1270,8 @@ Desktop::HideWindow(WindowLayer* window)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
window->SetHidden(true);
|
window->SetHidden(true);
|
||||||
|
if (fMouseEventWindow == window)
|
||||||
|
fMouseEventWindow = NULL;
|
||||||
|
|
||||||
if (window->InWorkspace(fCurrentWorkspace)) {
|
if (window->InWorkspace(fCurrentWorkspace)) {
|
||||||
_UpdateSubsetWorkspaces(window);
|
_UpdateSubsetWorkspaces(window);
|
||||||
|
|||||||
Reference in New Issue
Block a user