this post was submitted on 30 Oct 2023
585 points (97.4% liked)

Programmer Humor

31214 readers
1168 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 4 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 8 months ago (1 children)

(e.g. want to play a video on a button in your spreadsheet app using mpv?

You can definitely do that as wayland supports sub-compositors. You probably shouldn't, though.

[–] [email protected] 1 points 8 months ago (1 children)

How do you that in wayland? I'm very interested with crazy and useless stuff like this. On X11, you can pass a window ID to mpv with --wid, it'll attach the player to that window, even if that window is actually a button in a spreadsheet app.

[–] [email protected] 1 points 8 months ago

You implement the wayland server interface, launch mpv with the right environment to connect to you, then you take the buffer mpv gives you and compose it onto your window.