aboutsummaryrefslogtreecommitdiffstats
path: root/sway/desktop
diff options
context:
space:
mode:
authorLibravatar Access <ShootingStarDragons@protonmail.com>2024-02-20 17:53:20 +0800
committerLibravatar GitHub <noreply@github.com>2024-02-20 10:53:20 +0100
commit7c11c463a3e7f821ed9f3c6de59e37358441952e (patch)
tree1b57ec2c30b93269391490ffae0f84d0e8016218 /sway/desktop
parentxdg-activation: distinguish activation and urgency requests (diff)
downloadsway-7c11c463a3e7f821ed9f3c6de59e37358441952e.tar.gz
sway-7c11c463a3e7f821ed9f3c6de59e37358441952e.tar.zst
sway-7c11c463a3e7f821ed9f3c6de59e37358441952e.zip
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.c3
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(
137 surface->scene = scene; 137 surface->scene = scene;
138 surface->layer_surface = scene->layer_surface; 138 surface->layer_surface = scene->layer_surface;
139 surface->popups = popups; 139 surface->popups = popups;
140 surface->layer_surface->data = surface;
140 141
141 return surface; 142 return surface;
142} 143}
@@ -210,6 +211,8 @@ static void handle_node_destroy(struct wl_listener *listener, void *data) {
210 wl_list_remove(&layer->node_destroy.link); 211 wl_list_remove(&layer->node_destroy.link);
211 wl_list_remove(&layer->output_destroy.link); 212 wl_list_remove(&layer->output_destroy.link);
212 213
214 layer->layer_surface->data = NULL;
215
213 free(layer); 216 free(layer);
214} 217}
215 218