Lifted support for keys from tinywl; TODO: don't have all the code in server.c

This commit is contained in:
Keith Bowes 2020-02-18 15:41:39 -05:00
parent 1cd178e9ce
commit 64db394085
6 changed files with 142 additions and 3 deletions

View file

@ -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