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
master
Brian Ashworth 5 years ago committed by Simon Ser
parent 92b22ee9ea
commit 36aa67e549

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

Loading…
Cancel
Save