IME: support IME popup

This commit is contained in:
tokyo4j 2024-02-23 03:50:55 +09:00 committed by Johan Malm
parent 53fc8d5e39
commit b6d576922b
7 changed files with 175 additions and 1 deletions

View file

@ -298,6 +298,10 @@ create_popup(struct wlr_xdg_popup *wlr_popup, struct wlr_scene_tree *parent)
free(popup);
return NULL;
}
/* In support of IME popup */
wlr_popup->base->surface->data = popup->scene_tree;
node_descriptor_create(&popup->scene_tree->node,
LAB_NODE_DESC_LAYER_POPUP, popup);
@ -424,6 +428,9 @@ handle_new_layer_surface(struct wl_listener *listener, void *data)
return;
}
/* In support of IME popup */
layer_surface->surface->data = surface->scene_layer_surface->tree;
node_descriptor_create(&surface->scene_layer_surface->tree->node,
LAB_NODE_DESC_LAYER_SURFACE, surface);