Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8251555: Remove unused focusedWindow field in glass Window to avoid leak #286

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
15 changes: 0 additions & 15 deletions modules/javafx.graphics/src/main/java/com/sun/glass/ui/Window.java
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