1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 08:37:46 +00:00

Everywhere: Replace uses of GUI::Desktop's on_rect_change and remove it

This commit is contained in:
Linus Groh 2021-04-04 00:07:27 +02:00 committed by Andreas Kling
parent 5367bbb82c
commit 96b26ec125
7 changed files with 16 additions and 16 deletions

View file

@ -79,8 +79,6 @@ TaskbarWindow::TaskbarWindow(NonnullRefPtr<GUI::Menu> start_menu)
on_screen_rect_change(GUI::Desktop::the().rect());
GUI::Desktop::the().on_rect_change = [this](const Gfx::IntRect& rect) { on_screen_rect_change(rect); };
auto& main_widget = set_main_widget<TaskbarWidget>();
main_widget.set_layout<GUI::HorizontalBoxLayout>();
main_widget.layout()->set_margins({ 3, 3, 3, 1 });
@ -346,3 +344,8 @@ void TaskbarWindow::wm_event(GUI::WMEvent& event)
break;
}
}
void TaskbarWindow::screen_rect_change_event(GUI::ScreenRectChangeEvent& event)
{
on_screen_rect_change(event.rect());
}