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
This commit is contained in:
Brian Ashworth 2019-07-17 19:16:41 -04:00 committed by Simon Ser
parent 92b22ee9ea
commit 36aa67e549

View file

@ -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;
}