diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-07-17 19:16:41 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2019-07-18 08:20:54 +0300 |
commit | 36aa67e549609ce6c786c382f14ab866536cac47 (patch) | |
tree | 2703535a0e45f307fbeab79df006242653cad4d6 /sway/commands/input/xkb_switch_layout.c | |
parent | cmd_output: support current output alias (diff) | |
download | sway-36aa67e549609ce6c786c382f14ab866536cac47.tar.gz sway-36aa67e549609ce6c786c382f14ab866536cac47.tar.zst sway-36aa67e549609ce6c786c382f14ab866536cac47.zip |
input_cmd_xkb_switch_layout: support input types
This just adds input type config support to input_cmd_xkb_switch_layout
so that `input type:keyboard xkb_switch_layout <idx>` will work
Diffstat (limited to 'sway/commands/input/xkb_switch_layout.c')
-rw-r--r-- | sway/commands/input/xkb_switch_layout.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/commands/input/xkb_switch_layout.c b/sway/commands/input/xkb_switch_layout.c index fdf21452..286c040d 100644 --- a/sway/commands/input/xkb_switch_layout.c +++ b/sway/commands/input/xkb_switch_layout.c | |||
@@ -38,6 +38,7 @@ struct cmd_results *input_cmd_xkb_switch_layout(int argc, char **argv) { | |||
38 | struct sway_input_device *dev; | 38 | struct sway_input_device *dev; |
39 | wl_list_for_each(dev, &server.input->devices, link) { | 39 | wl_list_for_each(dev, &server.input->devices, link) { |
40 | if (strcmp(ic->identifier, "*") != 0 && | 40 | if (strcmp(ic->identifier, "*") != 0 && |
41 | strcmp(ic->identifier, "type:keyboard") != 0 && | ||
41 | strcmp(ic->identifier, dev->identifier) != 0) { | 42 | strcmp(ic->identifier, dev->identifier) != 0) { |
42 | continue; | 43 | continue; |
43 | } | 44 | } |