diff options
author | asdfjkluiop <junk7fe8fcb2d08c4552b168d984222b2a8f@scoopta.email> | 2019-08-18 14:24:20 -0700 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-08-27 10:09:59 +0900 |
commit | 00d846fb91b2461879f03822e6ee046b6f60832a (patch) | |
tree | b3a730673fb5eabac86b93bc4a13abba8ae1f56e | |
parent | e2cbbb5413d00f84e4a37747a93735aae4d46946 (diff) |
A layer-shell will only be focused if it is non-null
-rw-r--r-- | sway/desktop/layer_shell.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c index f1f79c1b5..a6239bea3 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); + } } } |