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:
parent
8aad1bff7c
commit
2a47269907
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user