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:41 +0900 |
commit | f07b9afee575fb52bb17bbcc7ad0ecf6b19926e6 (patch) | |
tree | 953401984c1cb90b17f62e9da47dee4f68b4bcec | |
parent | Fix formatting for title_format in man 5 sway (diff) | |
download | sway-f07b9afee575fb52bb17bbcc7ad0ecf6b19926e6.tar.gz sway-f07b9afee575fb52bb17bbcc7ad0ecf6b19926e6.tar.zst sway-f07b9afee575fb52bb17bbcc7ad0ecf6b19926e6.zip |
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 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) { | |||
212 | 212 | ||
213 | struct sway_seat *seat; | 213 | struct sway_seat *seat; |
214 | wl_list_for_each(seat, &server.input->seats, link) { | 214 | wl_list_for_each(seat, &server.input->seats, link) { |
215 | seat_set_focus_layer(seat, topmost ? topmost->layer_surface : NULL); | 215 | if (topmost != NULL) { |
216 | seat_set_focus_layer(seat, topmost->layer_surface); | ||
217 | } | ||
216 | } | 218 | } |
217 | } | 219 | } |
218 | 220 | ||