Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 3177b95

Browse files
keianhzobluemarvin
authored andcommitted
Correctly focus front window after another is closed (#2640)
1 parent be84df2 commit 3177b95

File tree

1 file changed

+2
-3
lines changed
  • app/src/common/shared/org/mozilla/vrbrowser/ui/widgets

1 file changed

+2
-3
lines changed

app/src/common/shared/org/mozilla/vrbrowser/ui/widgets/Windows.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,8 @@ public void closeWindow(@NonNull WindowWidget aWindow) {
307307
placeWindow(leftWindow, WindowPlacement.FRONT);
308308
}
309309

310-
frontWindow = getFrontWindow();
311-
if (mFocusedWindow == frontWindow && !getCurrentWindows().isEmpty() && frontWindow != null) {
312-
focusWindow(frontWindow);
310+
if (mFocusedWindow == frontWindow && !getCurrentWindows().isEmpty() && getFrontWindow() != null) {
311+
focusWindow(getFrontWindow());
313312
}
314313

315314
}

0 commit comments

Comments
 (0)