Skip to content

Commit

Permalink
Merge branch 'im' into im
Browse files Browse the repository at this point in the history
  • Loading branch information
ssfdust authored Nov 28, 2023
2 parents cc0080b + a380548 commit 28f995c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/seat/keyboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,8 @@ bool wf::keyboard_t::handle_keyboard_key(uint32_t time, uint32_t key, uint32_t s
auto& input = wf::get_core_impl().input;
auto& seat = wf::get_core_impl().seat;

bool handled_in_plugin = false;
auto mod = mod_from_key(key);
bool handled = false;
auto mod = mod_from_key(key);
input->locked_mods = this->get_locked_mods();

if (state == WLR_KEY_PRESSED)
Expand All @@ -320,7 +320,7 @@ bool wf::keyboard_t::handle_keyboard_key(uint32_t time, uint32_t key, uint32_t s
mod_binding_key = 0;
}

handled_in_plugin |= wf::get_core().bindings->handle_key(
handled |= wf::get_core().bindings->handle_key(
wf::keybinding_t{get_modifiers(), key}, mod_binding_key);
} else
{
Expand All @@ -333,7 +333,7 @@ bool wf::keyboard_t::handle_keyboard_key(uint32_t time, uint32_t key, uint32_t s

if ((timeout <= 0) || (time_elapsed < milliseconds(timeout)))
{
handled_in_plugin |= wf::get_core().bindings->handle_key(
handled |= wf::get_core().bindings->handle_key(
wf::keybinding_t{get_modifiers() | mod, 0}, mod_binding_key);
}
}
Expand Down

0 comments on commit 28f995c

Please sign in to comment.