Fix for window ready state for linux menu AttachToWindow