--- old/src/java.desktop/unix/classes/sun/awt/X11/XFramePeer.java 2015-07-13 17:38:55.368039700 +0300 +++ new/src/java.desktop/unix/classes/sun/awt/X11/XFramePeer.java 2015-07-13 17:38:54.864439000 +0300 @@ -289,7 +289,7 @@ XNETProtocol net_protocol = XWM.getWM().getNETProtocol(); if (net_protocol != null) { - net_protocol.setActiveWindow(this); + net_protocol.setActiveWindow(getWindow()); } xSetVisible(true); }