mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
Add modifiers support in wayland backend, parse modifiers in rootston config
This commit is contained in:
parent
3a8fdebaaa
commit
d3d9aca40c
6 changed files with 57 additions and 13 deletions
|
|
@ -61,9 +61,14 @@ static void keyboard_keysym_press(struct roots_keyboard *keyboard,
|
|||
return;
|
||||
}
|
||||
|
||||
uint32_t modifiers = wlr_keyboard_get_modifiers(keyboard->device->keyboard);
|
||||
struct wl_list *bindings = &keyboard->input->server->config->bindings;
|
||||
struct binding_config *bc;
|
||||
wl_list_for_each(bc, bindings, link) {
|
||||
if (modifiers ^ bc->modifiers) {
|
||||
continue;
|
||||
}
|
||||
|
||||
bool ok = true;
|
||||
for (size_t i = 0; i < bc->keysyms_len; i++) {
|
||||
ssize_t j = keyboard_pressed_keysym_index(keyboard, bc->keysyms[i]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue