A layer-shell will only be focused if it is non-null

This commit is contained in:
asdfjkluiop 2019-08-18 14:24:20 -07:00 committed by Drew DeVault
parent a298cad05c
commit f07b9afee5

View file

@ -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);
}
}
}