diff options
author | Access <ShootingStarDragons@protonmail.com> | 2024-02-20 17:53:20 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-20 10:53:20 +0100 |
commit | 7c11c463a3e7f821ed9f3c6de59e37358441952e (patch) | |
tree | 1b57ec2c30b93269391490ffae0f84d0e8016218 /sway/desktop | |
parent | d19810eba8959f052d91fd6609cef6adf36b3951 (diff) | |
download | sway-7c11c463a3e7f821ed9f3c6de59e37358441952e.tar.xz |
text_input: Implement input-method popups
Co-authored-by: tadeokondrak <me@tadeo.ca>
Diffstat (limited to 'sway/desktop')
-rw-r--r-- | sway/desktop/layer_shell.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sway/desktop/layer_shell.c b/sway/desktop/layer_shell.c index f0134396..4b2584b6 100644 --- a/sway/desktop/layer_shell.c +++ b/sway/desktop/layer_shell.c @@ -137,6 +137,7 @@ static struct sway_layer_surface *sway_layer_surface_create( surface->scene = scene; surface->layer_surface = scene->layer_surface; surface->popups = popups; + surface->layer_surface->data = surface; return surface; } @@ -210,6 +211,8 @@ static void handle_node_destroy(struct wl_listener *listener, void *data) { wl_list_remove(&layer->node_destroy.link); wl_list_remove(&layer->output_destroy.link); + layer->layer_surface->data = NULL; + free(layer); } |