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 | Fix background extensions (diff) | |
download | sway-b4e5e1381f909b173a171fb3941610aec989df48.tar.gz sway-b4e5e1381f909b173a171fb3941610aec989df48.tar.zst sway-b4e5e1381f909b173a171fb3941610aec989df48.zip |
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 @@ | |||
1 | #ifndef _SWAY_CLIENT_REGISTRY_H | ||
2 | #define _SWAY_CLIENT_REGISTRY_H | ||
3 | |||
4 | #include <wayland-client.h> | ||
5 | #include "wayland-desktop-shell-client-protocol.h" | ||
6 | #include "list.h" | ||
7 | |||
8 | struct output_state { | ||
9 | struct wl_output *output; | ||
10 | uint32_t flags; | ||
11 | uint32_t width, height; | ||
12 | }; | ||
13 | |||
14 | struct registry { | ||
15 | struct wl_compositor *compositor; | ||
16 | struct wl_display *display; | ||
17 | struct wl_pointer *pointer; | ||
18 | struct wl_seat *seat; | ||
19 | struct wl_shell *shell; | ||
20 | struct wl_shm *shm; | ||
21 | struct desktop_shell *desktop_shell; | ||
22 | list_t *outputs; | ||
23 | }; | ||
24 | |||
25 | struct registry *registry_poll(void); | ||
26 | void registry_teardown(struct registry *registry); | ||
27 | |||
28 | #endif | ||