Skip to content

Commit

Permalink
Correctly focus front window after another is closed (MozillaReality#…
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored and Alexandre Lissy committed Jan 21, 2020
1 parent f87c285 commit 8e8b425
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,8 @@ public void closeWindow(@NonNull WindowWidget aWindow) {
placeWindow(leftWindow, WindowPlacement.FRONT);
}

frontWindow = getFrontWindow();
if (mFocusedWindow == frontWindow && !getCurrentWindows().isEmpty() && frontWindow != null) {
focusWindow(frontWindow);
if (mFocusedWindow == frontWindow && !getCurrentWindows().isEmpty() && getFrontWindow() != null) {
focusWindow(getFrontWindow());
}

}
Expand Down

0 comments on commit 8e8b425

Please sign in to comment.