提交 ca5bb67b 编写于 作者: A ant

8027157: [SwingNode] needs explicit expose for JWindow

Reviewed-by: art, anthony
上级 b8142acc
......@@ -1108,4 +1108,8 @@ public abstract class WComponentPeer extends WObjectPeer
}
private native void setZOrder(long above);
public boolean isLightweightFramePeer() {
return false;
}
}
......@@ -90,4 +90,8 @@ public class WLightweightFramePeer extends WFramePeer {
public void updateCursorImmediately() {
SwingAccessor.getJLightweightFrameAccessor().updateCursor((JLightweightFrame)getLwTarget());
}
public boolean isLightweightFramePeer() {
return true;
}
}
......@@ -252,6 +252,13 @@ public class WWindowPeer extends WPanelPeer implements WindowPeer,
updateWindow(true);
}
}
// See https://javafx-jira.kenai.com/browse/RT-32570
WComponentPeer owner = getNativeParent();
if (owner != null && owner.isLightweightFramePeer()) {
Rectangle b = getBounds();
handleExpose(0, 0, b.width, b.height);
}
}
// Synchronize the insets members (here & in helper) with actual window
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册