mirror of
https://github.com/wizbright/waybox.git
synced 2025-11-01 22:58:42 -04:00
Lifted support for keys from tinywl; TODO: don't have all the code in server.c
This commit is contained in:
parent
1cd178e9ce
commit
64db394085
6 changed files with 142 additions and 3 deletions
|
|
@ -1,16 +1,28 @@
|
|||
#ifndef _WB_SEAT_H
|
||||
#define _WB_SEAT_H
|
||||
|
||||
#include <wlr/types/wlr_keyboard.h>
|
||||
#include <wlr/types/wlr_seat.h>
|
||||
|
||||
#include "waybox/server.h"
|
||||
|
||||
struct wb_seat {
|
||||
struct wlr_seat * seat;
|
||||
|
||||
struct wl_list keyboards;
|
||||
struct wl_listener new_input;
|
||||
};
|
||||
|
||||
struct wb_keyboard {
|
||||
struct wl_list link;
|
||||
struct wb_server * server;
|
||||
struct wlr_input_device * device;
|
||||
|
||||
struct wl_listener modifiers;
|
||||
struct wl_listener key;
|
||||
};
|
||||
|
||||
struct wb_server;
|
||||
struct wb_seat * wb_seat_create(struct wb_server * server);
|
||||
|
||||
void wb_seat_destroy(struct wb_seat * seat);
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue