From 1cd9940307c4b54503cefcd643e92314ade88c45 Mon Sep 17 00:00:00 2001 From: tokyo4j Date: Mon, 3 Jun 2024 17:54:49 +0900 Subject: [PATCH] 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. --- src/input/ime.c | 2 ++ 1 file changed, 2 insertions(+) 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