Skip to content

Commit

Permalink
Simple correction to fix focus of on_demand layer shell surfaces. (#1986
Browse files Browse the repository at this point in the history
)
  • Loading branch information
mfxbe authored Oct 29, 2023
1 parent cde46be commit 3a5f33c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/view/layer-shell/layer-shell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ void wayfire_layer_shell_view::map()
wf_layer_shell_manager::get_instance().handle_map(this);

auto& state = lsurface->current;
if ((state.keyboard_interactive == 1) && (state.layer >= ZWLR_LAYER_SHELL_V1_LAYER_TOP))
if ((state.keyboard_interactive >= 1) && (state.layer >= ZWLR_LAYER_SHELL_V1_LAYER_TOP))
{
wf::get_core().seat->focus_view(self());
}
Expand Down

0 comments on commit 3a5f33c

Please sign in to comment.