Fix bug where menu layer wouldn't update on other windows that was caused by some previous commit.