IME: fix flicker when popup surface is initially mapped

Before this commit, a popup surface was placed at (0,0) on its creation.
So if the popup surface is already mapped on its creation, the popup was
shown at (0,0) then quickly moved to the input-rect on surface commits
or input-rect updates.
This commit is contained in:
tokyo4j 2024-06-03 17:54:49 +09:00 committed by Hiroaki Yamamoto
parent 5ef50986c2
commit 1cd9940307

View file

@ -391,6 +391,8 @@ handle_input_method_new_popup_surface(struct wl_listener *listener, void *data)
node_descriptor_create(&popup->tree->node, LAB_NODE_DESC_IME_POPUP, NULL);
wl_list_insert(&relay->popups, &popup->link);
update_popup_position(popup);
}
static void