zulip / zulip-desktop

Zulip Desktop client for Mac, Windows and Linux.
https://zulip.com/apps
Apache License 2.0
840 stars 422 forks source link

Window activates on every system resume #1131

Open jonas-schievink opened 3 years ago

jonas-schievink commented 3 years ago

Describe the bug

Every time I turn my computer back on, the Zulip window activates itself and requests focus when it reconnects to the server.

Depending on the system configuration, this may cause Zulip to steal focus from whatever was previously in focus, and may even switch workspaces.

To Reproduce

Suspend to RAM, then resume. Might only reproduce on Linux.

Expected behavior

The app should not request focus, especially not for a benign event like this.

Screenshots

n/a (the window is focused)

Desktop (please complete the following information):

jonas-schievink commented 3 years ago

This also happens when just starting the Zulip app fwiw – the window opens, then shortly afterwards it requests focus.