My distro is CachyOS. When I open Picture-in-Picture mode and switch to another app the video hides. For instance, I want to play a game and watch a video, but I can’t because it disappears.
Here’s a recording of the issue. I don’t want to deal with uploading it to my own server, so I uploaded it on Discord: Video Link.
Firefox’s picture-in-picture mode is a detached window so unless you toggle “Always on Top” on the detached window, the playing video will be obscured by the main Firefox window if you focus that. Is that your issue?
If not can you clarify the issue?
I never use Xorg so don’t know different than that Firefox’s picture-in-picture window doesn’t stay on top by itself.
Well, Firefox can, on X11, decide if a window should always be on top, so it does it for its picture-in-picture window.
On Wayland though, due to its security model, an app cannot decide this on its own.
If you right click the picture in picture window, you should be able to select the “Always on Top” toggle for it.
That’s the workaround for now. The proper solution would be an proper protocol for picture in picture, similar to those under iOS or Android. But while they are discussed, it probably will still take some time.