single-pixel-buffer-v1: new protocol implementation

This implements the single-pixel-buffer-v1 protocol [1], to allow clients
to create 1x1 buffers with a single color.

[1]: https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/104
This commit is contained in:
Simon Ser 2022-01-18 19:48:40 +01:00
parent f1e05a6493
commit b24b50ec0c
4 changed files with 193 additions and 0 deletions

View file

@ -0,0 +1,19 @@
/*
* This an unstable interface of wlroots. No guarantees are made regarding the
* future consistency of this API.
*/
#ifndef WLR_USE_UNSTABLE
#error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features"
#endif
#ifndef WLR_TYPES_WLR_SINGLE_PIXEL_BUFFER_V1
#define WLR_TYPES_WLR_SINGLE_PIXEL_BUFFER_V1
#include <wayland-server-core.h>
struct wlr_single_pixel_buffer_manager_v1;
struct wlr_single_pixel_buffer_manager_v1 *wlr_single_pixel_buffer_manager_v1_create(
struct wl_display *display);
#endif