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.
This commit is contained in:
Levi Neely 2026-05-13 16:24:32 +02:00
parent d93f4935ca
commit 01bed8bdd3
1 changed files with 1 additions and 0 deletions

View File

@ -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);
}