mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-29 05:40:12 -04:00
Flesh out wayland backend registry
This commit is contained in:
parent
de01e654ce
commit
5ca9d612f4
7 changed files with 156 additions and 16 deletions
19
backend/wayland/wl_seat.c
Normal file
19
backend/wayland/wl_seat.c
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
#include <stdint.h>
|
||||
#include <wayland-client.h>
|
||||
#include "backend/wayland.h"
|
||||
|
||||
static void seat_handle_capabilities(void *data, struct wl_seat *wl_seat,
|
||||
enum wl_seat_capability caps) {
|
||||
//struct wlr_wl_seat *seat = data;
|
||||
// TODO
|
||||
}
|
||||
|
||||
static void seat_handle_name(void *data, struct wl_seat *wl_seat, const char *name) {
|
||||
struct wlr_wl_seat *seat = data;
|
||||
seat->name = name;
|
||||
}
|
||||
|
||||
const struct wl_seat_listener seat_listener = {
|
||||
.capabilities = seat_handle_capabilities,
|
||||
.name = seat_handle_name,
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue