aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremersion <contact@emersion.fr>2018-04-03 18:47:04 -0400
committeremersion <contact@emersion.fr>2018-04-03 18:47:04 -0400
commit5cd9457247146efe0bcbcae890968acb4716c667 (patch)
tree5fb274c371604a61d38a17e537fb00ad327bf5b6
parent843e16847b36a6cf4f685d9dae5133f7f9b37030 (diff)
downloadsway-5cd9457247146efe0bcbcae890968acb4716c667.tar.xz
Send enter event to layer shell surfaces
-rw-r--r--sway/desktop/layer_shell.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c
index 3c7b45f7..663ec7ba 100644
--- a/sway/desktop/layer_shell.c
+++ b/sway/desktop/layer_shell.c
@@ -278,6 +278,8 @@ static void handle_map(struct wl_listener *listener, void *data) {
sway_layer, map);
struct sway_output *output = sway_layer->layer_surface->output->data;
wlr_output_damage_add_box(output->damage, &sway_layer->geo);
+ wlr_surface_send_enter(sway_layer->layer_surface->surface,
+ sway_layer->layer_surface->output);
}
static void handle_unmap(struct wl_listener *listener, void *data) {