diff options
| author | Drew DeVault <sir@cmpwn.com> | 2015-11-19 07:58:57 -0500 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2015-11-19 07:58:57 -0500 |
| commit | b4e5e1381f909b173a171fb3941610aec989df48 (patch) | |
| tree | f7dcf63dc6f4ac05c8fbb86da37d52766f210130 /include/client/registry.h | |
| parent | 4a1584be535a2d851250854d46a3563e222fe953 (diff) | |
Refactor the crap out of wayland clients
And create a background surface on every output when invoking swaybg.
Diffstat (limited to 'include/client/registry.h')
| -rw-r--r-- | include/client/registry.h | 28 |
1 files changed, 28 insertions, 0 deletions
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 <wayland-client.h> +#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 |
