(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.

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.

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.

Create a post

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

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 120 users / day
  • 257 users / week
  • 744 users / month
  • 3.72K users / 6 months
  • 1 subscriber
  • 1.48K Posts
  • 32.7K Comments
  • Modlog