]> git.mdlowis.com Git - proto/labwc.git/commitdiff
IME: fix flicker when popup surface is initially mapped
authortokyo4j <hrak1529@gmail.com>
Mon, 3 Jun 2024 08:54:49 +0000 (17:54 +0900)
committerHiroaki Yamamoto <hrak1529@gmail.com>
Mon, 3 Jun 2024 18:59:56 +0000 (03:59 +0900)
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

index 6b103153a5eb22b08ad628ab640ac52666d02793..c09ef94877de00c0d1a1bf762399bfc198767e1f 100644 (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