1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

WindowServer: Let WindowManager set serverside effects

Menu and Window animations can now be disabled and the geometry
overlay made conditional. Shadow options are dependent on the
current theme actually supplying bitmaps, but they provide a fast
way to toggle those that do without having to edit theme files.
This commit is contained in:
thankyouverycool 2022-08-07 20:14:01 -04:00 committed by Andreas Kling
parent 5917545633
commit d11ce1d808
4 changed files with 26 additions and 7 deletions

View file

@ -481,6 +481,8 @@ void Menu::clear_hovered_item()
void Menu::start_activation_animation(MenuItem& item)
{
if (!WindowManager::the().system_effects().animate_menus())
return;
VERIFY(menu_window());
VERIFY(menu_window()->backing_store());
auto window = Window::construct(*this, WindowType::Menu);