aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/input/input-manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sway/input/input-manager.h')
-rw-r--r--include/sway/input/input-manager.h29
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 @@
7#include "sway/config.h" 7#include "sway/config.h"
8#include "list.h" 8#include "list.h"
9 9
10/**
11 * The global singleton input manager
12 * TODO: make me not a global
13 */
14extern struct sway_input_manager *input_manager;
15
16struct sway_input_device { 10struct sway_input_device {
17 char *identifier; 11 char *identifier;
18 struct wlr_input_device *wlr_device; 12 struct wlr_input_device *wlr_device;
@@ -21,7 +15,6 @@ struct sway_input_device {
21}; 15};
22 16
23struct sway_input_manager { 17struct sway_input_manager {
24 struct sway_server *server;
25 struct wl_list devices; 18 struct wl_list devices;
26 struct wl_list seats; 19 struct wl_list seats;
27 20
@@ -36,30 +29,24 @@ struct sway_input_manager {
36 29
37struct sway_input_manager *input_manager_create(struct sway_server *server); 30struct sway_input_manager *input_manager_create(struct sway_server *server);
38 31
39bool input_manager_has_focus(struct sway_input_manager *input, 32bool input_manager_has_focus(struct sway_node *node);
40 struct sway_node *node);
41 33
42void input_manager_set_focus(struct sway_input_manager *input, 34void input_manager_set_focus(struct sway_node *node);
43 struct sway_node *node);
44 35
45void input_manager_configure_xcursor(struct sway_input_manager *input); 36void input_manager_configure_xcursor(void);
46 37
47void input_manager_apply_input_config(struct sway_input_manager *input, 38void input_manager_apply_input_config(struct input_config *input_config);
48 struct input_config *input_config);
49 39
50void input_manager_apply_seat_config(struct sway_input_manager *input, 40void input_manager_apply_seat_config(struct seat_config *seat_config);
51 struct seat_config *seat_config);
52 41
53struct sway_seat *input_manager_get_default_seat( 42struct sway_seat *input_manager_get_default_seat(void);
54 struct sway_input_manager *input);
55 43
56struct sway_seat *input_manager_get_seat(struct sway_input_manager *input, 44struct sway_seat *input_manager_get_seat(const char *seat_name);
57 const char *seat_name);
58 45
59/** 46/**
60 * Gets the last seat the user interacted with 47 * Gets the last seat the user interacted with
61 */ 48 */
62struct sway_seat *input_manager_current_seat(struct sway_input_manager *input); 49struct sway_seat *input_manager_current_seat(void);
63 50
64struct input_config *input_device_get_config(struct sway_input_device *device); 51struct input_config *input_device_get_config(struct sway_input_device *device);
65 52