use button enum instead of key enum

This commit is contained in:
raichoo 2020-04-04 12:29:10 +00:00
parent 4d149c8cf2
commit 145dd899ff
1 changed files with 1 additions and 1 deletions

View File

@ -93,7 +93,7 @@ normal_mode_button_handler(
return;
}
if (event->state == WLR_KEY_PRESSED) {
if (event->state == WLR_BUTTON_PRESSED) {
uint32_t modifiers = hikari_server.keyboard_state.modifiers;
struct hikari_modifier_bindings *map =
&hikari_configuration->bindings.mouse[modifiers];