mirror of
https://github.com/swaywm/sway.git
synced 2026-04-06 07:15:44 -04:00
text_input: Implement input-method popups
Co-authored-by: tadeokondrak <me@tadeo.ca>
This commit is contained in:
parent
d19810eba8
commit
7c11c463a3
4 changed files with 253 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue