### Describe the bug see title ### How to reproduce add / disconnect external monitor with app running, do F5, compare with restart. ### Example code _No response_ ### Relevant output _No response_ ### Platform macOS