mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-19 08:56:27 -05:00
Flesh out wayland backend somewhat, add example
This commit is contained in:
parent
52e6ed54cb
commit
de01e654ce
17 changed files with 447 additions and 24 deletions
32
include/wlr/wayland.h
Normal file
32
include/wlr/wayland.h
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
#ifndef _WLR_WAYLAND_H
|
||||
#define _WLR_WAYLAND_H
|
||||
|
||||
#include <wayland-server.h>
|
||||
#include <wlr/common/list.h>
|
||||
|
||||
struct wlr_wl_seat {
|
||||
struct wl_seat *wl_seat;
|
||||
uint32_t capabilities;
|
||||
const char *name;
|
||||
list_t *outputs;
|
||||
list_t *pointers;
|
||||
};
|
||||
|
||||
struct wlr_wl_output {
|
||||
struct wl_output *wl_output;
|
||||
uint32_t flags;
|
||||
uint32_t width, height;
|
||||
uint32_t scale;
|
||||
};
|
||||
|
||||
struct wlr_wl_keyboard {
|
||||
struct wl_keyboard *wl_keyboard;
|
||||
};
|
||||
|
||||
struct wlr_wl_pointer {
|
||||
struct wl_pointer *wl_pointer;
|
||||
struct wl_surface *current_surface;
|
||||
wl_fixed_t x, y;
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue