* Always take the last window when choosing a new focus window in normal mouse
mode. This fixes focus issues as describen in bug #5020. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34456 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1664,19 +1664,13 @@ Desktop::SetFocusWindow(Window* focus)
|
||||
}
|
||||
|
||||
uint32 list = fCurrentWorkspace;
|
||||
|
||||
if (fSettings->FocusFollowsMouse())
|
||||
list = kFocusList;
|
||||
|
||||
if (focus == NULL || hasModal || hasWindowScreen) {
|
||||
if (!fSettings->FocusFollowsMouse()) {
|
||||
focus = FrontWindow();
|
||||
if (focus == NULL) {
|
||||
// there might be no front window in case of only a single
|
||||
// window with B_FLOATING_ALL_WINDOW_FEEL
|
||||
focus = _CurrentWindows().LastWindow();
|
||||
}
|
||||
} else
|
||||
if (!fSettings->FocusFollowsMouse())
|
||||
focus = _CurrentWindows().LastWindow();
|
||||
else
|
||||
focus = fFocusList.LastWindow();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user