mirror of
https://github.com/labwc/labwc.git
synced 2025-11-04 13:30:07 -05:00
IME: support IME popup
This commit is contained in:
parent
53fc8d5e39
commit
b6d576922b
7 changed files with 175 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue