Skip to content
Permalink
Browse files
8251555: Remove unused focusedWindow field in glass Window to avoid leak
Reviewed-by: arapte
  • Loading branch information
kevinrushforth committed Aug 25, 2020
1 parent c3fb321 commit ddf8814e663c7a0ebc28bf7b27dd3727f7b5dc39
Showing 1 changed file with 0 additions and 15 deletions.
@@ -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;
@@ -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);
}
}

0 comments on commit ddf8814

Please sign in to comment.