void (@NotNull Window frame) { // exec at EDT if (ourLib == null) { return; } final long xid = _getX11WindowXid(frame); if (xid == 0) { LOG.debug("can't obtain XID of window: " + frame + ", skip global menu binding"); return; } if (windowHandle != null) { _trace("bind new window 0x%X", xid); ourLib.bindNewWindow(windowHandle, xid); } }