fix(menu): request redraw when menu bar opens
When using a menu bar without Wayland popup support, the menu items are unclickable, as redrawing is never requested. So, request a redraw after opening so the overlay menu is created and drawn immediately.
This commit is contained in:
parent
2a73fbc0ed
commit
3b62210d27
1 changed files with 1 additions and 0 deletions
|
|
@ -648,6 +648,7 @@ where
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
shell.capture_event();
|
shell.capture_event();
|
||||||
|
shell.request_redraw();
|
||||||
#[cfg(wayland_platform)]
|
#[cfg(wayland_platform)]
|
||||||
if matches!(WINDOWING_SYSTEM.get(), Some(WindowingSystem::Wayland)) {
|
if matches!(WINDOWING_SYSTEM.get(), Some(WindowingSystem::Wayland)) {
|
||||||
self.create_popup(layout, view_cursor, renderer, shell, viewport, my_state);
|
self.create_popup(layout, view_cursor, renderer, shell, viewport, my_state);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue