Skip to content

Commit

Permalink
layer-shell: do not grab focus if keyboard interactivity is set to ON…
Browse files Browse the repository at this point in the history
…_DEMAND (#2530)
  • Loading branch information
dkondor authored Dec 19, 2024
1 parent 303491e commit 128401d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/view/layer-shell/layer-shell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,10 +566,10 @@ void wayfire_layer_shell_view::commit()

if (prev_state.keyboard_interactive != state->keyboard_interactive)
{
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());
} else
} else if (state->keyboard_interactive == 0)
{
wf::get_core().seat->refocus();
}
Expand Down

0 comments on commit 128401d

Please sign in to comment.