* Fixed focus behaviour of FFM on workspace switch - let SetFocusWindow() decide
which window to give focus, it already does the right thing. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34110 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -3236,11 +3236,10 @@ Desktop::_SetWorkspace(int32 index)
|
|||||||
delete region;
|
delete region;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set new focus to the front window, but keep focus to a floating
|
// Set new focus, but keep focus to a floating window if still visible
|
||||||
// window if still visible
|
|
||||||
if (!_Windows(index).HasWindow(FocusWindow())
|
if (!_Windows(index).HasWindow(FocusWindow())
|
||||||
|| !FocusWindow()->IsFloating())
|
|| !FocusWindow()->IsFloating())
|
||||||
SetFocusWindow(FrontWindow());
|
SetFocusWindow();
|
||||||
|
|
||||||
_WindowChanged(NULL);
|
_WindowChanged(NULL);
|
||||||
MarkDirty(dirty);
|
MarkDirty(dirty);
|
||||||
|
|||||||
Reference in New Issue
Block a user