From 122d8ce95484bd097bf3a15b8191213bd6969b41 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 21 Jun 2022 23:10:38 +0200 Subject: 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 --- sway/commands/input/xkb_switch_layout.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sway/commands/input') diff --git a/sway/commands/input/xkb_switch_layout.c b/sway/commands/input/xkb_switch_layout.c index dabc6697..3cce4ec8 100644 --- a/sway/commands/input/xkb_switch_layout.c +++ b/sway/commands/input/xkb_switch_layout.c @@ -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; } -- cgit v1.2.3-54-g00ecf