SetWindowFocus() could reset the focus of a window that already had focus.

This fixes bug #128.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16305 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2006-02-09 10:44:02 +00:00
parent 8aad1bff7c
commit 2a47269907
1 changed files with 5 additions and 0 deletions

View File

@ -955,6 +955,11 @@ Desktop::SetFocusWindow(WindowLayer* focus)
focus = focus->PreviousWindow(fCurrentWorkspace);
}
if (fFocus == focus) {
// turns out the window that is supposed to get focus now already has it
UnlockAllWindows();
}
ServerApp* oldActiveApp = NULL;
ServerApp* newActiveApp = NULL;