From b4e5e1381f909b173a171fb3941610aec989df48 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Thu, 19 Nov 2015 07:58:57 -0500 Subject: Refactor the crap out of wayland clients And create a background surface on every output when invoking swaybg. --- include/client/registry.h | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/client/registry.h (limited to 'include/client/registry.h') diff --git a/include/client/registry.h b/include/client/registry.h new file mode 100644 index 00000000..68a9bc02 --- /dev/null +++ b/include/client/registry.h @@ -0,0 +1,28 @@ +#ifndef _SWAY_CLIENT_REGISTRY_H +#define _SWAY_CLIENT_REGISTRY_H + +#include +#include "wayland-desktop-shell-client-protocol.h" +#include "list.h" + +struct output_state { + struct wl_output *output; + uint32_t flags; + uint32_t width, height; +}; + +struct registry { + struct wl_compositor *compositor; + struct wl_display *display; + struct wl_pointer *pointer; + struct wl_seat *seat; + struct wl_shell *shell; + struct wl_shm *shm; + struct desktop_shell *desktop_shell; + list_t *outputs; +}; + +struct registry *registry_poll(void); +void registry_teardown(struct registry *registry); + +#endif -- cgit v1.2.3