Smithay / client-toolkit

Smithay's toolkit for writing wayland clients
MIT License
285 stars 80 forks source link

Helper class for `wl_subsurface` #440

Open jgcodes2020 opened 9 months ago

jgcodes2020 commented 9 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 9 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