WindowServer: Redraw menu items after client updates them somehow

This fixes an issue where the undo/redo actions in TextEditor only
updated once you hovered over them.
This commit is contained in:
Andreas Kling 2022-08-21 20:04:33 +02:00
commit 17687435ca
Notes: sideshowbarker 2024-07-17 08:05:34 +09:00
2 changed files with 4 additions and 0 deletions

View file

@ -106,6 +106,8 @@ void Menu::redraw()
void Menu::redraw(MenuItem const& menu_item)
{
if (!menu_window())
return;
draw(menu_item);
menu_window()->invalidate(menu_item.rect());
}