Skip to content

Commit

Permalink
layer-shell: Refocus the keyboard focus view after
Browse files Browse the repository at this point in the history
 arranging layers

This effectively makes it so the view that had focus before interacting
with wf-shell apps, is focused after interactivity is complete.

Fixes #2118.
Fixes #2047.
  • Loading branch information
soreau committed Feb 4, 2024
1 parent afa431e commit f5a25ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/view/layer-shell/layer-shell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,9 @@ void wayfire_layer_shell_view::commit()
if ((state->keyboard_interactive >= 1) && (state->layer >= ZWLR_LAYER_SHELL_V1_LAYER_TOP))
{
wf::get_core().seat->focus_view(self());
} else
{
wf::get_core().seat->refocus();
}
}

Expand Down

0 comments on commit f5a25ab

Please sign in to comment.