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:
parent
d93f4935ca
commit
01bed8bdd3
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue