Smithay / client-toolkit

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

Support for wp_viewporter #66

Open elinorbgr opened 5 years ago

elinorbgr commented 5 years ago

The wp_viewporter extension, when supported by the compositor, allows the client to crop and resale the contents of a buffer before it is displayed.

Example uses can be:

axelkar commented 7 months ago

Can I have a try at this? Btw, is there any plan to have winit export more of its implementation details so I don't have to fork it to e.g. implement wl_subsurface, this extension or maybe just wlroots-only extensions which will never make it upstream?

I guess I could take a rwh to get a wl_surface but how do I define and list globals through RawDisplayHandle?

wash2 commented 7 months ago

I guess I could take a rwh to get a wl_surface but how do I define and list globals through RawDisplayHandle?

Maybe smithay-clipboard could point you in the right direction. https://github.com/Smithay/smithay-clipboard/blob/eebb02816e919b6fc7456843469105560a53f170/src/lib.rs#L34

https://github.com/Smithay/smithay-clipboard/blob/eebb02816e919b6fc7456843469105560a53f170/src/worker.rs#L44