mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-15 08:56:26 -05:00
Flesh out wayland backend registry
This commit is contained in:
parent
de01e654ce
commit
5ca9d612f4
7 changed files with 156 additions and 16 deletions
|
|
@ -11,8 +11,8 @@ struct wlr_wl_backend {
|
|||
struct wl_display *local_display;
|
||||
/* remote state */
|
||||
struct wl_display *remote_display;
|
||||
struct wl_registry *remote_registry;
|
||||
struct wl_compositor *remote_compositor;
|
||||
struct wl_registry *registry;
|
||||
struct wl_compositor *compositor;
|
||||
struct wl_shell *shell;
|
||||
struct wl_shm *shm;
|
||||
struct wlr_wl_seat *seat;
|
||||
|
|
@ -21,4 +21,7 @@ struct wlr_wl_backend {
|
|||
|
||||
void wlr_wlb_registry_poll(struct wlr_wl_backend *backend);
|
||||
|
||||
extern const struct wl_seat_listener seat_listener;
|
||||
extern const struct wl_output_listener output_listener;
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -8,15 +8,28 @@ struct wlr_wl_seat {
|
|||
struct wl_seat *wl_seat;
|
||||
uint32_t capabilities;
|
||||
const char *name;
|
||||
list_t *outputs;
|
||||
list_t *keyboards;
|
||||
list_t *pointers;
|
||||
};
|
||||
|
||||
struct wlr_wl_output_mode {
|
||||
uint32_t flags; // enum wl_output_mode
|
||||
int32_t width, height;
|
||||
int32_t refresh; // mHz
|
||||
};
|
||||
|
||||
struct wlr_wl_output {
|
||||
struct wl_output *wl_output;
|
||||
uint32_t flags;
|
||||
uint32_t width, height;
|
||||
const char *make;
|
||||
const char *model;
|
||||
uint32_t scale;
|
||||
int32_t x, y;
|
||||
int32_t phys_width, phys_height; // mm
|
||||
int32_t subpixel; // enum wl_output_subpixel
|
||||
int32_t transform; // enum wl_output_transform
|
||||
list_t *modes;
|
||||
struct wlr_wl_output_mode *current_mode;
|
||||
};
|
||||
|
||||
struct wlr_wl_keyboard {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue