Skip to content

Commit

Permalink
Fix being able to focus layer while having interactivity
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikReider committed May 13, 2023
1 parent 86e0850 commit 273d486
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sway/input/seatop_default.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,11 @@ static void handle_button(struct sway_seat *seat, uint32_t time_msec,
struct wlr_layer_surface_v1 *layer;
if (surface &&
(layer = wlr_layer_surface_v1_try_from_wlr_surface(surface))) {
if (seat->focused_layer
&& seat->focused_layer != layer
&& seat->focused_layer->current.keyboard_interactive) {
return;
}
seat_set_focus(seat, NULL);
seat_set_focus_layer(seat, layer);
transaction_commit_dirty();
Expand Down

0 comments on commit 273d486

Please sign in to comment.