logoalt Hacker News

krs_yesterday at 4:45 PM2 repliesview on HN

qimgv uses libmpv for video playback support for example. I'm guessing that's not what you mean, but I'm struggling to think of how one might "embed" one application inside of another on xorg.


Replies

feverzsjyesterday at 4:58 PM

x11 supports foreign window embedding. You can embed window from other application into your own window. That's why lots of mpv/vlc based players/editors don't work probably on wayland. The only way to achieve this on wayland is writing a custom compositor for the foreign window.

magicalhippotoday at 4:06 AM

On Windows it's trivial, just reparent[1] the main window of the subprocess to a window in your process. Technically you should clear a couple of window flags as well, but that's trivial too.

[1]: https://learn.microsoft.com/en-us/windows/win32/api/winuser/...