diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2019-07-17 19:16:41 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2019-07-17 19:16:41 -0400 |
| commit | 21274f0f1ad81e9b34fecb8aff0448710ded4dbf (patch) | |
| tree | 2703535a0e45f307fbeab79df006242653cad4d6 | |
| parent | c0e81f543b6310cfaf02887325b80b0a06789de6 (diff) | |
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
| -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) { struct sway_input_device *dev; wl_list_for_each(dev, &server.input->devices, link) { if (strcmp(ic->identifier, "*") != 0 && + strcmp(ic->identifier, "type:keyboard") != 0 && strcmp(ic->identifier, dev->identifier) != 0) { continue; } |
