Description of the issue: the PiP window is no longer displayed in front of other open windows, in KDE Wayland.
The PiP window seems to be treated treated more or less as any other application window. If you open another app window and focus it instead, the new app window will cover the video window. This happens even if you simply alt tab back into the Brave window in which you pressed the PiP button.
How can this issue be reproduced?
- Use a KDE Wayland environment.
- Open Brave
- Go to any https://www.youtube.com video
- Open video in Picture in Picture mode
- Alt tab back to the Brave browser (or to any other open program that might overlap its window with the PiP window)
Expected result: PiP mode should stay in front of other open windows.
Brave Version: Version 1.61.101 Chromium: 120.0.6099.71 (Official Build) (64-bit)
Additional Information: I’m using Garuda Linux with KDE Wayland. Before this, I was using KDE X11 on the same system and PiP worked fine. Something specifically about Wayland seems to be causing the PiP issue.