[writing a compositor] Displaying something on the screen
sardemff7+wayland at sardemff7.net
Thu May 31 09:05:30 UTC 2018
On 5/31/18 5:42 AM, adlo wrote:
> I am attempting to write a simple test compositor using libweston.
> Here is my code so far:
> What else do I need to do in order to get it to the point where something appears on the screen, such as a rectangle of solid colour?
For regular (desktop) clients, you’ll need to properly implement the
libweston-desktop hooks (at least the two mandatory ones), create views
for surfaces, put them in a layer, and making sure a repaint will
happen. You can find the very minimal libweston(-desktop) compositor
For other more specific clients, you’ll need to implement the relevant
protocols and view creation. Or you can use libweston/Weston plugins
libweston allows to create a solid colour surface, which is used for the
black-surface-under-fullscreen requirement and by some compositors to
give a default black background.
I hope this helps.
Quentin “Sardem FF7” Glidic
More information about the wayland-devel