summaryrefslogtreecommitdiff
path: root/sway/desktop/layer_shell.c
diff options
context:
space:
mode:
authoremersion <[email protected]>2018-06-05 08:44:53 +0100
committerGitHub <[email protected]>2018-06-05 08:44:53 +0100
commit6b9ffbad20995d322748bebc4ea43cbffb070381 (patch)
treee8c45627ec1d38d88349160aa04d53f4e4432525 /sway/desktop/layer_shell.c
parente410757fe8f1eaa1883a60ac93b96f35d36ae938 (diff)
parent1206a6097711556b22418db5043dc7c22d8b9a3e (diff)
Merge pull request #2103 from RyanDwyer/focus-fixes
Focus fixes
Diffstat (limited to 'sway/desktop/layer_shell.c')
-rw-r--r--sway/desktop/layer_shell.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c
index b60aa487..2d355b74 100644
--- a/sway/desktop/layer_shell.c
+++ b/sway/desktop/layer_shell.c
@@ -257,6 +257,11 @@ static void unmap(struct sway_layer_surface *sway_layer) {
}
output_damage_surface(output, sway_layer->geo.x, sway_layer->geo.y,
sway_layer->layer_surface->surface, true);
+
+ struct sway_seat *seat = input_manager_current_seat(input_manager);
+ if (seat->focused_layer == sway_layer->layer_surface) {
+ seat_set_focus_layer(seat, NULL);
+ }
}
static void handle_destroy(struct wl_listener *listener, void *data) {