I understand that wayland protocol seems to be the long term solution, but how about a band aid in the meantime - a simple window rule enabled by default that forces picture-in-picture windows to be kept above. It seems to work fine. Operating System: Arch Linux KDE Plasma Version: 5.93.0 KDE Frameworks Version: 5.249.0 Qt Version: 6.7.0 Kernel Version: 6.7.5-arch1-1 (64-bit) Graphics Platform: Wayland Processors: 16 × AMD Ryzen 7 6800H with Radeon Graphics Memory: 14.8 GiB of RAM Graphics Processor: AMD Radeon Graphics Manufacturer: LENOVO Product Name: 82RE System Version: Legion 5 15ARH7
I would be super in favor of this if it works properly. Does it work fine with new PiP windows, not just the one you created it for? And are there rules that work for all PiP windows for both Firefox and Chrome/Chromium? Can you test those?
(In reply to Nate Graham from comment #1) > I would be super in favor of this if it works properly. Does it work fine > with new PiP windows, not just the one you created it for? And are there > rules that work for all PiP windows for both Firefox and Chrome/Chromium? > Can you test those? This rule works fine for me, no issues whatsoever: Description=Picture in picture for firefox above=true aboverule=3 title=Picture-in-Picture titlematch=1 types=1 wmclass=firefox wmclassmatch=1 Chrome seems to work fine out of the box, if it's run in xwayland, native wayland version needs a rule: Description=Picture in picture for chrome above=true aboverule=3 title=Picture in picture titlematch=1 types=1 wmclass=chrome wmclassmatch=1 I would imagine that a regex would be needed to catch all chromium based browsers in 'wmclass'. By the way, it would be nice if there was a checkbox to enable/disable window rules instead of having to delete and recreate them to test.
> above=true > aboverule=3 in plasma 6, I recommend to create a "layer" window rule instead to force pip windows to be placed in the overlay layer. With that, pip windows will be visible even if there's a fullscreen window.
(In reply to Vlad Zahorodnii from comment #3) > > above=true > > aboverule=3 > > in plasma 6, I recommend to create a "layer" window rule instead to force > pip windows to be placed in the overlay layer. With that, pip windows will > be visible even if there's a fullscreen window. I wasn't aware of that, but it works even better. Description=Picture in picture for firefox layer=overlay layerrule=2 title=Picture-in-Picture titlematch=1 types=1 wmclass=firefox wmclassmatch=1
An exact title match for "Picture-in-Picture" might work in English, but does this still work if the system is in another language?
(In reply to Nate Graham from comment #5) > An exact title match for "Picture-in-Picture" might work in English, but > does this still work if the system is in another language? Good point, just checked, Firefox does indeed translate that. Wouldn't expect it. Well, this is pretty hopeless then.
Indeed. It's a shame, I'd like to ship a workaround too, as this is a real issue that annoys people. But as you can see, sometimes life doesn't cooperate!