mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +00:00
LibGUI+WindowServer: Remove ResizeEvent::old_size()
Turns out nobody was using this information anyway, so let's not go through all the trouble of plumbing it from WindowServer to LibGUI. Fixes #3247.
This commit is contained in:
parent
683ae4f7ad
commit
e374eb3035
Notes:
sideshowbarker
2024-07-19 03:18:33 +09:00
Author: https://github.com/awesomekling
Commit: e374eb3035
7 changed files with 18 additions and 33 deletions
|
@ -90,7 +90,7 @@ void WindowServerConnection::handle(const Messages::WindowClient::Paint& message
|
|||
void WindowServerConnection::handle(const Messages::WindowClient::WindowResized& message)
|
||||
{
|
||||
if (auto* window = Window::from_window_id(message.window_id())) {
|
||||
Core::EventLoop::current().post_event(*window, make<ResizeEvent>(message.old_rect().size(), message.new_rect().size()));
|
||||
Core::EventLoop::current().post_event(*window, make<ResizeEvent>(message.new_rect().size()));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue