aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/input-manager.c
diff options
context:
space:
mode:
authorLibravatar Tony Crisci <tony@dubstepdish.com>2017-12-17 08:30:20 -0500
committerLibravatar Tony Crisci <tony@dubstepdish.com>2017-12-17 08:30:20 -0500
commite27eff8a29abd74448322ae78baa99a489e43620 (patch)
tree8ad1ad5998604a9e44c3cbd642a3b1921116b7fd /sway/input/input-manager.c
parentset keyboard config at runtime (diff)
downloadsway-e27eff8a29abd74448322ae78baa99a489e43620.tar.gz
sway-e27eff8a29abd74448322ae78baa99a489e43620.tar.zst
sway-e27eff8a29abd74448322ae78baa99a489e43620.zip
send keyboard enter on keyboard configuration
Diffstat (limited to 'sway/input/input-manager.c')
-rw-r--r--sway/input/input-manager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/input/input-manager.c b/sway/input/input-manager.c
index 6a49b13b..fa8e4b49 100644
--- a/sway/input/input-manager.c
+++ b/sway/input/input-manager.c
@@ -145,6 +145,7 @@ static void input_add_notify(struct wl_listener *listener, void *data) {
145 145
146 struct sway_seat *seat = NULL; 146 struct sway_seat *seat = NULL;
147 if (!input_has_seat_configuration(input)) { 147 if (!input_has_seat_configuration(input)) {
148 sway_log(L_DEBUG, "no seat configuration, using default seat");
148 seat = input_manager_get_seat(input, default_seat); 149 seat = input_manager_get_seat(input, default_seat);
149 sway_seat_add_device(seat, input_device); 150 sway_seat_add_device(seat, input_device);
150 return; 151 return;
@@ -245,6 +246,7 @@ void sway_input_manager_apply_input_config(struct sway_input_manager *input,
245 246
246void sway_input_manager_apply_seat_config(struct sway_input_manager *input, 247void sway_input_manager_apply_seat_config(struct sway_input_manager *input,
247 struct seat_config *seat_config) { 248 struct seat_config *seat_config) {
249 sway_log(L_DEBUG, "applying new seat config for seat %s", seat_config->name);
248 struct sway_seat *seat = input_manager_get_seat(input, seat_config->name); 250 struct sway_seat *seat = input_manager_get_seat(input, seat_config->name);
249 // the old config is invalid so clear it 251 // the old config is invalid so clear it
250 sway_seat_set_config(seat, NULL); 252 sway_seat_set_config(seat, NULL);