From 01bed8bdd3644a00ab7af39ac126cb3376368201 Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Wed, 13 May 2026 16:24:32 +0200 Subject: [PATCH] Paint menu after mapping (no Expose events in Wayland) In X11, mapping a window triggers Expose which causes repainting. In Wayland there are no Expose events, so wMenuPaint must be called explicitly after the menu is mapped in wMenuMapAt. --- src/menu.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/menu.c b/src/menu.c index e799f23..b8a7e51 100644 --- a/src/menu.c +++ b/src/menu.c @@ -919,6 +919,7 @@ void wMenuMapAt(WMenu * menu, int x, int y, int keyboard) wm_backend->window_map((WNativeWindow)menu->frame->core->window); wRaiseFrame(menu->frame->core); menu->flags.mapped = 1; + wMenuPaint(menu); } else { selectEntry(menu, 0); }