mirror of
https://github.com/swaywm/sway.git
synced 2025-11-06 13:29:50 -05:00
Refactor the crap out of wayland clients
And create a background surface on every output when invoking swaybg.
This commit is contained in:
parent
4a1584be53
commit
b4e5e1381f
8 changed files with 331 additions and 268 deletions
28
include/client/registry.h
Normal file
28
include/client/registry.h
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue