Skip to content

Commit

Permalink
8251555: Remove unused focusedWindow field in glass Window to avoid leak
Browse files Browse the repository at this point in the history
Reviewed-by: arapte
  • Loading branch information
kevinrushforth committed Aug 25, 2020
1 parent c3fb321 commit ddf8814
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions modules/javafx.graphics/src/main/java/com/sun/glass/ui/Window.java
Original file line number Diff line number Diff line change
Expand Up @@ -738,16 +738,6 @@ public boolean isTransparentWindow() {
return (this.styleMask & Window.TRANSPARENT) != 0;
}

private static volatile Window focusedWindow = null;
public static Window getFocusedWindow() {
Application.checkEventThread();
return Window.focusedWindow;
}

private static void setFocusedWindow(final Window window) {
Window.focusedWindow = window;
}

public boolean isFocused() {
Application.checkEventThread();
return this.isFocused;
Expand Down Expand Up @@ -1322,11 +1312,6 @@ protected void notifyFocus(int event) {

if (this.isFocused != focused) {
this.isFocused = focused;
if (this.isFocused) {
setFocusedWindow(this);
} else {
setFocusedWindow(null);
}
handleWindowEvent(System.nanoTime(), event);
}
}
Expand Down

0 comments on commit ddf8814

Please sign in to comment.