mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 01:41:30 +00:00
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:
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…
Reference in a new issue