aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seat.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index 18664d7c..df48b751 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -725,6 +725,10 @@ void seat_set_raw_focus(struct sway_seat *seat, struct sway_node *node) {
725 725
726void seat_set_focus(struct sway_seat *seat, struct sway_node *node) { 726void seat_set_focus(struct sway_seat *seat, struct sway_node *node) {
727 if (seat->focused_layer) { 727 if (seat->focused_layer) {
728 struct wlr_layer_surface_v1 *layer = seat->focused_layer;
729 seat_set_focus_layer(seat, NULL);
730 seat_set_focus(seat, node);
731 seat_set_focus_layer(seat, layer);
728 return; 732 return;
729 } 733 }
730 734