Re:Show HN: 80+ CLI tools to build, browse, and blend your m...
by SuperNinKenDo on Sunday July 21, 2024 @12:12AM
(#41022320)
Awesome, thanks. Can confirm I'm not using `--ontop`, so at a bit of a loss. The issue is probably with mpv or Wayland because I get the same problem just launching mpv directly, without library. Although focus stealing protection in kwin seems to use some rubric around whether it thinks the window was spawned directly by the user or not to determine how the levels of protection are applied. I would have thought the highest level (extreme) would just prevent focus stealing entirely based on its description.
I'll see what I can do to debug the issue, but otherwise, thanks for your help, I might try your playlist idea in the meantime, it's arguably closer to my desired behaviour anyway.
hmm maybe not: https://github.com/mpv-player/mpv/issues/9064
edit: I just verified it is working fine on X11 (wanted to make sure I wasn't mis-remembering--but it is very obvious when something steals focus because I use the Dim Inactive desktop effect with a very high setting). I'm using ontop=yes as mentioned before. On Fedora 39 with my setup mpv does not steal focus when launching/switching videos. I did notice some weird behavior with nomachine before but after setting Focus Protection to Force High for nxplayer.bin I haven't noticed it again.
If this isn't working in Wayland surely this should be considered a Wayland/mpv bug?--just one more reason for me to delay trying Wayland