When playing on 2 monitors, if I click to a window on the 2nd screen (AKA Minecraft losing focus) Minecraft minimizes and I get disconnected from any server I would have been connected to. It tells other players that I have left but my game does not update until 10-15 seconds after Minecraft gets focus back and then it notifies me that I have been disconnected from the server. This happens regardless of being connected to a player's world or a Realm.
Related issues
duplicates
Comments

Thank you for your report!
However, this issue has been closed as Won't Fix per MCPE-31994.
If you'd like to post a suggestion or give further feedback, please visit the Minecraft Feedback Site or choose a link below.
Quick Links:
📓 Issue Guidelines – 💬 Community Support – 📧 Customer Support – 📖 Game Wiki