public static final void applyWindowFix(Window window){
  if (!instance.needsWindowFix) {
    return;
  }
  window.removeWindowStateListener(instance);
  window.addWindowStateListener(instance);
  instance.windowStateChanged(null);
}

public static final void applyWindowFix ( Window window ) { if ( ! instance . needsWindowFix ) { return ; } window . removeWindowStateListener ( instance ) ; window . addWindowStateListener ( instance ) ; instance . windowStateChanged ( null ) ; }
adds a work around for a weird menu - offset jdk bug under certain window managers .
