From: tokyo4j Date: Mon, 3 Jun 2024 08:54:49 +0000 (+0900) Subject: IME: fix flicker when popup surface is initially mapped X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=1cd9940307c4b54503cefcd643e92314ade88c45;p=proto%2Flabwc.git 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. --- diff --git a/src/input/ime.c b/src/input/ime.c index 6b103153..c09ef948 100644 --- a/src/input/ime.c +++ b/src/input/ime.c @@ -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