mirror of
https://github.com/wizbright/waybox.git
synced 2025-11-01 22:58:42 -04:00
Basic seat support
This commit is contained in:
parent
cb67c24718
commit
1cd178e9ce
5 changed files with 36 additions and 0 deletions
16
include/waybox/seat.h
Normal file
16
include/waybox/seat.h
Normal 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
|
||||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue