mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
move keyboard to seat
This commit is contained in:
parent
9bd0f47efd
commit
5354fe8729
13 changed files with 176 additions and 43 deletions
26
include/rootston/seat.h
Normal file
26
include/rootston/seat.h
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#ifndef _ROOTSTON_SEAT_H
|
||||
#define _ROOTSTON_SEAT_H
|
||||
|
||||
#include <wayland-server.h>
|
||||
|
||||
#include "rootston/input.h"
|
||||
#include "rootston/keyboard.h"
|
||||
|
||||
struct roots_seat {
|
||||
struct roots_input *input;
|
||||
struct wlr_seat *seat;
|
||||
struct wl_list keyboards;
|
||||
struct wl_list link;
|
||||
};
|
||||
|
||||
struct roots_seat *roots_seat_create(struct roots_input *input, char *name);
|
||||
|
||||
void roots_seat_destroy(struct roots_seat *seat);
|
||||
|
||||
void roots_seat_add_keyboard(struct roots_seat *seat,
|
||||
struct roots_keyboard *keyboard);
|
||||
|
||||
void roots_seat_remove_keyboard(struct roots_seat *seat,
|
||||
struct roots_keyboard *keyboard);
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue