diff options
author | Dudemanguy <random342@airmail.cc> | 2023-08-13 13:59:45 -0500 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-08-14 21:55:20 +0000 |
commit | 221a574a503604fbda6f25f171852d99e49de06b (patch) | |
tree | 540d27a8fd29412f7bbf785057225a05920cc188 /video/image_writer.c | |
parent | 64db68639dd56edbd0de4d3c71f75ab14f9bc135 (diff) | |
download | mpv-221a574a503604fbda6f25f171852d99e49de06b.tar.bz2 mpv-221a574a503604fbda6f25f171852d99e49de06b.tar.xz |
wayland: clear saved mpkey more aggressively
Introduced by 1f8013ff3fddd788a517656e09f5ce5d7efd928d. We try to save
the mpkey so it can be used in the modifier event that comes next if
appropriate and also clear it when needed. The problem is that the
condition for clearing is too strict and things like mismatched cases
and so on can make mpkey on the corresponding key release event not
match the saved mpkey even though in reality they were the same key.
Loosen the check by simply always clearing the saved mpkey as long as
there was some key found and the state is up. We don't handle multiple
keys at the same time anyways (they're interpreted in a sequence), so it
should be hopefully OK.
Diffstat (limited to 'video/image_writer.c')
0 files changed, 0 insertions, 0 deletions