cross-posted from: https://programming.dev/post/32779890

I want to like, block interaction with a window that I am keeping on top of other windows so I can see it but still click to stuff behind it.

It turns out mpv already has this implemented. https://github.com/mpv-player/mpv/pull/8949

Technically no windows or mac support (presumably it's possible there; dunno), but OP only asked for linux stuff so I'll close this

And then I could remove the title bar if I really don't want to interact with the app.

all 4 comments

sorted by: hot top controversial new old
[–] 1 point 1 year ago

i thought there was a way to do it in kde window settings

  • source
  • [+] 1 point 1 year ago (1 child)
  • [–] [S] 1 point 1 year ago

    I actually tried this right after I made this post, and it was not where near as smooth as I wanted. KDE would put the window that I had assigned to all desktops on top, whenever I would switch virtual desktops.

    I found a solution though, it looks like mpv has support.

  • source
  • parent
  • [–] 8 points 1 year ago

    Your window needs to get the list of all other windows, find the one directly below it, and send a mouse click programmatically, using something like accessibility API.
    Are you writing a keylogger?

  • source