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:
@@ -955,6 +955,11 @@ Desktop::SetFocusWindow(WindowLayer* focus)
|
|||||||
focus = focus->PreviousWindow(fCurrentWorkspace);
|
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* oldActiveApp = NULL;
|
||||||
ServerApp* newActiveApp = NULL;
|
ServerApp* newActiveApp = NULL;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user