Knowledge Base: Why are my mouse clicks affecting the game when the overlay is open?

Use EOS_UI_AddNotifyDisplaySettingsUpdated to get a callback when the overlay visibility has changed.

https://dev.epicgames.com/community/learning/knowledge-base/9mvKP/epic-online-services-why-are-my-mouse-clicks-affecting-the-game-when-the-overlay-is-open