Receive a notification without Telegram becoming the active window straight away.
A notification popup happens, then Telegram becomes the active window after every notification.
Operating system: Fedora 32, Gnome 3.36.2, X11
Version of Telegram Desktop:
2.1.6
Installation source (Linux Only) - the official website / GitHub releases / flatpak / snap / distribution package: Flatpak
Used theme:
Night mode
Logs:
Insert log.txt here (if necessary)
It looks like there's a new setting for notifications: "Bring attention to the window", and this was on by default. Previously, I don't remember this being a feature. If this is the default, it really shouldn't be.
This is not a problem of Telegram. Either this is a Flatpak or Gnome issue. In either case what should happen (and what is happening for me on KDE X11) is that your application task bar should highlight Telegram - not activate it.
In my case the Telegram icon becomes orange highlighted and starts jumping for a few seconds:

I can activate it manually then by pressing Ctrl+Alt+A on KDE, but it does not get activated on its own.
This is not a problem of Telegram. Either this is a Flatpak or Gnome issue. In either case what should happen (and what is happening for me on KDE X11) is that your application task bar should highlight Telegram - not activate it.
In my case the Telegram icon becomes orange highlighted and starts jumping for a few seconds:
I can activate it manually then by pressing Ctrl+Alt+A on KDE, but it does not get activated on its own.
As I mentioned above, I was able to resolve the issue by turning off the Telegram setting "Draw attention to the window" which was turned on by default. (Why is this on by default if the behaviour is inconsistent between platforms?)
Why is this on by default if the behaviour is inconsistent between platforms?
Because it was always by default, but just wasn't implemented on Linux
See #7887
Most helpful comment
It looks like there's a new setting for notifications: "Bring attention to the window", and this was on by default. Previously, I don't remember this being a feature. If this is the default, it really shouldn't be.