mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-01-02 14:28:32 +00:00
fix harmless typo in InputsChannel::handle_modifiers
InputsChannel::handle_modifiers converts _modifiers which is a bitflag of SPICE_KEYBOARD_MODIFIER_FLAGS_* to a Platform::*_MODIFIER bitflag, which is what Platform::set_keyboard_lock_modifiers expects. However, it's called with _modifiers, and the bitflag that this function computes is never used. Pass the computed bitflag to ::set_keyboard_lock_modifiers since _modifiers format is meaningless for ::set_keyboard_lock_modifiers. This bug was harmless because the two different set of modifier flags actually use the same values, so _modifiers and modifiers could be used interchangeably. However it's more future-proof to use the right format here.
This commit is contained in:
parent
0d4bd55042
commit
f2b4c3d21a
@ -402,7 +402,7 @@ void InputsChannel::set_local_modifiers()
|
||||
modifiers |= Platform::CAPS_LOCK_MODIFIER;
|
||||
}
|
||||
|
||||
Platform::set_keyboard_lock_modifiers(_modifiers);
|
||||
Platform::set_keyboard_lock_modifiers(modifiers);
|
||||
}
|
||||
|
||||
void InputsChannel::on_focus_in()
|
||||
|
||||
Loading…
Reference in New Issue
Block a user