mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
IME: destroy popup node when popup is destroyed
Before this commit, scene-nodes for IME popup were destroyed when the bound wl_surface is destroyed. However, this caused a bug that multiple popup nodes are shown when input_popup_surface_v2 is recreated with the same wl_surface.
This commit is contained in:
parent
bbe60088e5
commit
5ef50986c2
1 changed files with 1 additions and 0 deletions
|
|
@ -354,6 +354,7 @@ handle_popup_surface_destroy(struct wl_listener *listener, void *data)
|
|||
{
|
||||
struct input_method_popup *popup =
|
||||
wl_container_of(listener, popup, destroy);
|
||||
wlr_scene_node_destroy(&popup->tree->node);
|
||||
wl_list_remove(&popup->destroy.link);
|
||||
wl_list_remove(&popup->commit.link);
|
||||
wl_list_remove(&popup->link);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue