mirror of
https://github.com/swaywm/sway.git
synced 2025-11-23 06:59:48 -05:00
sway input device
This commit is contained in:
parent
462a451328
commit
163edc5a90
14 changed files with 258 additions and 215 deletions
|
|
@ -10,26 +10,21 @@ struct sway_seat {
|
|||
struct sway_input_manager *input;
|
||||
swayc_t *focus;
|
||||
|
||||
struct wl_list keyboards; // sway_keyboard::link
|
||||
struct wl_list pointers; // sway_pointer::link
|
||||
list_t *devices;
|
||||
|
||||
struct wl_listener focus_destroy;
|
||||
};
|
||||
|
||||
struct sway_pointer {
|
||||
struct sway_seat *seat;
|
||||
struct wlr_input_device *device;
|
||||
struct wl_list link;
|
||||
struct wl_list link; // input_manager::seats
|
||||
};
|
||||
|
||||
struct sway_seat *sway_seat_create(struct sway_input_manager *input,
|
||||
const char *seat_name);
|
||||
|
||||
void sway_seat_add_device(struct sway_seat *seat,
|
||||
struct wlr_input_device *device);
|
||||
struct sway_input_device *device);
|
||||
|
||||
void sway_seat_remove_device(struct sway_seat *seat,
|
||||
struct wlr_input_device *device);
|
||||
struct sway_input_device *device);
|
||||
|
||||
void sway_seat_configure_xcursor(struct sway_seat *seat);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue