From 00d846fb91b2461879f03822e6ee046b6f60832a Mon Sep 17 00:00:00 2001 From: asdfjkluiop Date: Sun, 18 Aug 2019 14:24:20 -0700 Subject: A layer-shell will only be focused if it is non-null --- sway/desktop/layer_shell.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c index f1f79c1b..a6239bea 100644 --- a/sway/desktop/layer_shell.c +++ b/sway/desktop/layer_shell.c @@ -212,7 +212,9 @@ void arrange_layers(struct sway_output *output) { struct sway_seat *seat; wl_list_for_each(seat, &server.input->seats, link) { - seat_set_focus_layer(seat, topmost ? topmost->layer_surface : NULL); + if (topmost != NULL) { + seat_set_focus_layer(seat, topmost->layer_surface); + } } } -- cgit v1.2.3-54-g00ecf