mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-12-29 12:59:49 +01:00
33 lines
878 B
C
33 lines
878 B
C
#ifndef _ROOTSTON_INPUT_H
|
|
#define _ROOTSTON_INPUT_H
|
|
#include <wayland-server.h>
|
|
#include <wlr/types/wlr_input_device.h>
|
|
#include <wlr/types/wlr_cursor.h>
|
|
#include <wlr/types/wlr_seat.h>
|
|
#include "rootston/cursor.h"
|
|
#include "rootston/config.h"
|
|
#include "rootston/view.h"
|
|
#include "rootston/server.h"
|
|
|
|
struct roots_input {
|
|
struct roots_config *config;
|
|
struct roots_server *server;
|
|
|
|
struct wl_listener input_add;
|
|
struct wl_listener input_remove;
|
|
|
|
struct wl_list seats;
|
|
};
|
|
|
|
struct roots_input *input_create(struct roots_server *server,
|
|
struct roots_config *config);
|
|
void input_destroy(struct roots_input *input);
|
|
|
|
struct roots_seat *input_seat_from_wlr_seat(struct roots_input *input,
|
|
struct wlr_seat *seat);
|
|
|
|
bool input_view_has_focus(struct roots_input *input, struct roots_view *view);
|
|
|
|
struct roots_seat *input_get_seat(struct roots_input *input, char *name);
|
|
|
|
#endif
|