Smithay / client-toolkit

Smithay's toolkit for writing wayland clients
MIT License
259 stars 75 forks source link

Helper class for `wl_subsurface` #440

Open jgcodes2020 opened 4 months ago

jgcodes2020 commented 4 months ago

Does SCTK have a class wrapping a window with wl_subsurface? This would be helpful for writing things like video players.

i509VCB commented 4 months ago

There isn't any big helper to wrap subsurfaces, but sctk does provide a helper to initialize a subsurface for you: https://github.com/Smithay/client-toolkit/blob/master/src/subcompositor.rs#L30-L44