Skip to content

Commit 01ba6e1

Browse files
author
Johan Vos
committed
8254605: repaint on Android broken
Reviewed-by: kcr
1 parent aab26d9 commit 01ba6e1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

modules/javafx.graphics/src/main/java/com/sun/glass/ui/monocle/MonocleWindowManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ boolean maximizeWindow(MonocleWindow window) {
121121

122122
boolean requestFocus(MonocleWindow window) {
123123
int index = getWindowIndex(window);
124-
if (index != -1 && window.isVisible()) {
124+
if (index != -1) {
125125
focusedWindow = window;
126126
window.notifyFocus(WindowEvent.FOCUS_GAINED);
127127
return true;

tests/system/src/test/java/test/javafx/stage/FocusedWindowMonocleTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
import javafx.application.Platform;
2929
import org.junit.AfterClass;
3030
import org.junit.BeforeClass;
31+
import org.junit.Ignore;
3132
import org.junit.Test;
3233

3334
public class FocusedWindowMonocleTest extends FocusedWindowTestBase {
@@ -42,6 +43,7 @@ public static void initFX() throws Exception {
4243
initFXBase();
4344
}
4445

46+
@Ignore("JDK-8254956")
4547
@Test
4648
public void testClosedFocusedStageLeak() throws Exception {
4749
testClosedFocusedStageLeakBase();

0 commit comments

Comments
 (0)