From 0b80bc4efb54a453cc23b268950ed9a57e009626 Mon Sep 17 00:00:00 2001 From: lkn Date: Sun, 7 Jun 2026 17:02:32 +0200 Subject: [PATCH] cleanup: remove dispatch from popUpMenu, keep in wl_map --- WINGs/wpopupbutton.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/WINGs/wpopupbutton.c b/WINGs/wpopupbutton.c index 4e4d911..53ab5a5 100644 --- a/WINGs/wpopupbutton.c +++ b/WINGs/wpopupbutton.c @@ -450,8 +450,7 @@ static void resizeMenu(PopUpButton * bPtr) static void popUpMenu(PopUpButton * bPtr) { - extern void W_WLClientDispatchPending(void); - W_Screen *scr = bPtr->view->screen; + W_Screen *scr = bPtr->view->screen; WNativeWindow dummyW; int x, y; @@ -493,9 +492,7 @@ static void popUpMenu(PopUpButton * bPtr) * a no-op on Wayland (wl_redisplay returns early when !mapped). */ W_MapView(bPtr->menuView); - /* Process any pending Wayland events (e.g. the configure from a - * NULL-buffer unmap) so the popup is interactable immediately. */ - W_WLClientDispatchPending(); + /* Pre-render the full menu into the backing as a safety net, * independent of expose-timing. makeMenuPixmap draws every item