I use bspwm on Arch Linux and I have the following problem with Microsoft Teams:
1) Open Teams for Linux.
2) Close using keyboard shortcut or X in top right of the Teams window.
3a) If On close, keep the application running
is checked in options, (2) will not do anything at all. This is unexpected behaviour.
3b) If it isn't checked, the whole application will close (expected behaviour).
So (3a) happens because the functionality to minimize the application to the systray doesn't seem to work properly. The expected behaviour should be: the application window closes, but the application keeps running in the background (launchable through the systray).
After searching online, it seems the functionality works on full desktop environments like GNOME or KDE, but doesn't work on (tiling) window managers like i3 or bspwm.
In the logs, this is what happens when I close Teams:
Fri Sep 18 2020 19:47:55 GMT+0200 (Central European Summer Time) <1393837> -- info -- Focusing main window
Fri Sep 18 2020 19:47:55 GMT+0200 (Central European Summer Time) <1393837> -- info -- Is foreground set to true
Fri Sep 18 2020 19:47:56 GMT+0200 (Central European Summer Time) <1393837> -- info -- Saved window state to {"monitorId":1251303547765213,"x":0,"y":0,"width":1280,"height":750,"isMaximized":true,"isFullScreen":false}
Fri Sep 18 2020 19:47:56 GMT+0200 (Central European Summer Time) <1393837> -- info -- Preventing app from exiting and minimizing.
Fri Sep 18 2020 19:47:56 GMT+0200 (Central European Summer Time) <1393837> -- info -- Main window is minimizing.
Fri Sep 18 2020 19:47:56 GMT+0200 (Central European Summer Time) <1393837> -- info -- Blur main window
Fri Sep 18 2020 19:47:56 GMT+0200 (Central European Summer Time) <1393837> -- info -- Is foreground set to false
Fri Sep 18 2020 19:47:56 GMT+0200 (Central European Summer Time) <1393837> -- event -- duration: 1.312999963760376, name: desktop_foreground_duration, vdiMode: 0, eventpdclevel: 2,
EDIT: I tried Teams in an Ubuntu VM and got the exact same logs, but in Ubuntu the feature does work.