Skip to content

Commit

Permalink
Correctly focus front window after another is closed (#2640)
Browse files Browse the repository at this point in the history
  • Loading branch information
keianhzo authored and bluemarvin committed Jan 14, 2020
1 parent be84df2 commit 3177b95
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 3177b95

Please sign in to comment.