I’m using Telegram Desktop with my Manjaro KDE (last updated on 07.11.2020). There is a problem with Picture-in-Picture mode: whenever Telegram main window loses focus, so does PiP floating screen (it should stay on top).
Steps to reproduce:
- Install the latest Telegram Desktop from their GitHub page: github.com/telegramdesktop/tdesktop/releases;
- Log into your account;
- Open this post t.me/telegram/104 from their official channel;
- Click on video to open it, then press “PiP” icon to activate picture-in-picture mode;
- Click on some other application or on desktop (clicking on taskbar is not affected, though).
Expected behavior: you can switch to any other application and still see PiP window on your screen (like with YouTube in Firefox).
Actual behavior: When Telegram main window loses focus, the PiP screen disappears but doesn’t destroy, since you can hear sound from the video.
I’ve reported this bug in Telegram’s issue tracker and they say it’s a kwin bug. github.com/telegramdesktop/tdesktop/issues/8149.