mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-19 06:59:51 -05:00
compositor-x11: Handle keyboard focus correctly so we avoid stuck modifiers
This commit is contained in:
parent
ac5c5e7853
commit
3ba4858c4b
6 changed files with 80 additions and 3 deletions
|
|
@ -1015,6 +1015,7 @@ window_handle_keyboard_focus(void *data,
|
|||
input->keyboard_focus = NULL;
|
||||
|
||||
end = keys->data + keys->size;
|
||||
input->modifiers = 0;
|
||||
for (k = keys->data; k < end; k++)
|
||||
input->modifiers |= d->xkb->map->modmap[*k];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue