Skip to content

Commit

Permalink
layer-shell: Refocus the keyboard focus view after arranging layers
Browse files Browse the repository at this point in the history
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 1, 2024
1 parent 9c9630d commit 3f1e54b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/view/layer-shell/layer-shell.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ struct wf_layer_shell_manager
arrange_layer(output, ZWLR_LAYER_SHELL_V1_LAYER_BOTTOM);
arrange_layer(output, ZWLR_LAYER_SHELL_V1_LAYER_BACKGROUND);
output->workarea->reflow_reserved_areas();
wf::get_core().seat->refocus();
}
};

Expand Down

0 comments on commit 3f1e54b

Please sign in to comment.