Hi, Anton.

On 14.08.2020 10:00, Anton Litvinov wrote:
Could you please review the following fix for the bug.

Bug: https://bugs.openjdk.java.net/browse/JDK-8249183
Webrev: http://cr.openjdk.java.net/~alitvinov/8249183/jdk16/webrev.00

Maybe we can get rid most part of this native method and do all stuff in java 
in WWindowPeer?

Something like already done on macOS:
notifyIconify():
    
http://hg.openjdk.java.net/jdk/jdk/file/6b984aa424e3/src/java.desktop/macosx/classes/sun/lwawt/LWWindowPeer.java#l661
notifyZoom():
    
http://hg.openjdk.java.net/jdk/jdk/file/6b984aa424e3/src/java.desktop/macosx/classes/sun/lwawt/LWWindowPeer.java#l686

So we will be able to use plain "instanceof Frame" instead of custom flags:
    
http://hg.openjdk.java.net/jdk/jdk/file/6b984aa424e3/src/java.desktop/macosx/classes/sun/lwawt/LWWindowPeer.java#l1075

--
Best regards, Sergey.

Reply via email to