mirror of
https://github.com/swaywm/sway.git
synced 2025-11-15 06:59:50 -05:00
Remove access to wlr_input_device union
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3626 Closes: https://github.com/swaywm/sway/issues/7077
This commit is contained in:
parent
49cef51e6e
commit
122d8ce954
10 changed files with 76 additions and 92 deletions
|
|
@ -98,10 +98,9 @@ struct cmd_results *input_cmd_xkb_switch_layout(int argc, char **argv) {
|
|||
struct xkb_switch_layout_action *action =
|
||||
&actions[actions_len++];
|
||||
|
||||
action->keyboard = dev->wlr_device->keyboard;
|
||||
action->keyboard = wlr_keyboard_from_input_device(dev->wlr_device);
|
||||
if (relative) {
|
||||
action->layout = get_layout_relative(
|
||||
dev->wlr_device->keyboard, relative);
|
||||
action->layout = get_layout_relative(action->keyboard, relative);
|
||||
} else {
|
||||
action->layout = layout;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue