diff options
Diffstat (limited to 'include/sway/input/input-manager.h')
-rw-r--r-- | include/sway/input/input-manager.h | 29 |
1 files changed, 8 insertions, 21 deletions
diff --git a/include/sway/input/input-manager.h b/include/sway/input/input-manager.h index b7073006..219aa9ba 100644 --- a/include/sway/input/input-manager.h +++ b/include/sway/input/input-manager.h @@ -7,12 +7,6 @@ #include "sway/config.h" #include "list.h" -/** - * The global singleton input manager - * TODO: make me not a global - */ -extern struct sway_input_manager *input_manager; - struct sway_input_device { char *identifier; struct wlr_input_device *wlr_device; @@ -21,7 +15,6 @@ struct sway_input_device { }; struct sway_input_manager { - struct sway_server *server; struct wl_list devices; struct wl_list seats; @@ -36,30 +29,24 @@ struct sway_input_manager { struct sway_input_manager *input_manager_create(struct sway_server *server); -bool input_manager_has_focus(struct sway_input_manager *input, - struct sway_node *node); +bool input_manager_has_focus(struct sway_node *node); -void input_manager_set_focus(struct sway_input_manager *input, - struct sway_node *node); +void input_manager_set_focus(struct sway_node *node); -void input_manager_configure_xcursor(struct sway_input_manager *input); +void input_manager_configure_xcursor(void); -void input_manager_apply_input_config(struct sway_input_manager *input, - struct input_config *input_config); +void input_manager_apply_input_config(struct input_config *input_config); -void input_manager_apply_seat_config(struct sway_input_manager *input, - struct seat_config *seat_config); +void input_manager_apply_seat_config(struct seat_config *seat_config); -struct sway_seat *input_manager_get_default_seat( - struct sway_input_manager *input); +struct sway_seat *input_manager_get_default_seat(void); -struct sway_seat *input_manager_get_seat(struct sway_input_manager *input, - const char *seat_name); +struct sway_seat *input_manager_get_seat(const char *seat_name); /** * Gets the last seat the user interacted with */ -struct sway_seat *input_manager_current_seat(struct sway_input_manager *input); +struct sway_seat *input_manager_current_seat(void); struct input_config *input_device_get_config(struct sway_input_device *device); |