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.

  • pelya@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    3 days 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?

  • lurch (he/him)@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 days ago

    different approach: if you see mixed content of two windows, it doesn’t really matter which one is on top.

    if you have many stacked, it’s a different thing. maybe you could use nested wayland sessions to group all other windows into one, then you’re dealing with only two again and can have the group on top.

    • moonpiedumplings@programming.devOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 days 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.