mirror of
https://github.com/swaywm/sway.git
synced 2026-04-23 06:46:27 -04:00
add comment
This commit is contained in:
parent
06db457f55
commit
278b44d1e9
1 changed files with 3 additions and 0 deletions
|
|
@ -81,6 +81,9 @@ struct cmd_results *input_cmd_xkb_switch_layout(int argc, char **argv) {
|
||||||
return cmd_results_new(CMD_FAILURE, "Unable to allocate actions");
|
return cmd_results_new(CMD_FAILURE, "Unable to allocate actions");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Calculate new indexes first because switching a layout in one
|
||||||
|
keyboard may result in a change on other keyboards as well because
|
||||||
|
of keyboard groups. */
|
||||||
struct sway_input_device *dev;
|
struct sway_input_device *dev;
|
||||||
wl_list_for_each(dev, &server.input->devices, link) {
|
wl_list_for_each(dev, &server.input->devices, link) {
|
||||||
if (strcmp(ic->identifier, "*") != 0 &&
|
if (strcmp(ic->identifier, "*") != 0 &&
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue