layout: Gather state-related stuff together

This commit is contained in:
Dorota Czaplejewicz
2022-09-30 17:12:00 +00:00
parent afe6a6cf74
commit c017a773ea
2 changed files with 71 additions and 54 deletions

View File

@ -91,7 +91,7 @@ mod c {
&state.action,
&active_modifiers,
layout.get_view_latched(),
&layout.current_view,
&layout.state.current_view,
);
if state.pressed == keyboard::PressType::Pressed
|| locked != LockedStyle::Free