diff options
author | Simon Ser <contact@emersion.fr> | 2022-06-21 23:10:38 +0200 |
---|---|---|
committer | Simon Zeni <simon@bl4ckb0ne.ca> | 2022-06-22 12:44:15 -0400 |
commit | 122d8ce95484bd097bf3a15b8191213bd6969b41 (patch) | |
tree | b97bb88c4bf7b566747bed4cce84f51842cd21a5 /sway/commands | |
parent | 49cef51e6e7fe31ba4f820560e0b69ebd2149d37 (diff) |
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
Diffstat (limited to 'sway/commands')
-rw-r--r-- | sway/commands/input/xkb_switch_layout.c | 5 |
1 files changed, 2 insertions, 3 deletions
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; } |