If the focus window became invisible because of changing its feel, focus is now

reset to the front window.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15436 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2005-12-09 13:30:47 +00:00
parent c81a228fca
commit aa203e8d5f
1 changed files with 3 additions and 0 deletions

View File

@ -1476,6 +1476,9 @@ Desktop::SetWindowFeel(WindowLayer *window, window_feel newFeel)
}
_UpdateFronts();
if (window == FocusWindow() && !window->IsVisible())
SetFocusWindow(FrontWindow());
}