sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit f07b9afee575fb52bb17bbcc7ad0ecf6b19926e6
parent a298cad05c74d8c5fe2b5cb3fc14952d1205146f
Author: asdfjkluiop <junk7fe8fcb2d08c4552b168d984222b2a8f@scoopta.email>
Date:   Sun, 18 Aug 2019 14:24:20 -0700

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

Diffstat:
Msway/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 @@ -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); + } } }