Basic seat support

This commit is contained in:
Keith Bowes 2020-02-18 07:37:19 -05:00
parent cb67c24718
commit 1cd178e9ce
5 changed files with 36 additions and 0 deletions

16
include/waybox/seat.h Normal file
View file

@ -0,0 +1,16 @@
#ifndef _WB_SEAT_H
#define _WB_SEAT_H
#include <wlr/types/wlr_seat.h>
#include "waybox/server.h"
struct wb_seat {
struct wlr_seat * seat;
};
struct wb_server;
struct wb_seat * wb_seat_create(struct wb_server * server);
void wb_seat_destroy(struct wb_seat * seat);
#endif

View file

@ -24,6 +24,7 @@
#include "waybox/output.h"
#include "waybox/cursor.h"
#include "waybox/seat.h"
struct wb_server {
struct wl_display *wl_display;
@ -34,6 +35,7 @@ struct wb_server {
struct wlr_output_layout *layout;
struct wb_cursor *cursor;
struct wb_seat * seat;
struct wl_listener new_output;
struct wl_listener new_input;