Copy some wnd functions from osx/generic (those that 100% match)