mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 15:15:08 +00:00
WindowServer: Make message receivers be weak pointers.
This commit is contained in:
parent
95cfa49f1b
commit
d77f8ba413
5 changed files with 28 additions and 27 deletions
|
@ -369,7 +369,7 @@ void WSClientConnection::handle_request(WSAPIDidFinishPaintingNotification& requ
|
|||
if (!window.has_painted_since_last_resize()) {
|
||||
if (window.last_lazy_resize_rect().size() == request.rect().size()) {
|
||||
window.set_has_painted_since_last_resize(true);
|
||||
WSMessageLoop::the().post_message(&window, make<WSResizeEvent>(window.last_lazy_resize_rect(), window.rect()));
|
||||
WSMessageLoop::the().post_message(window, make<WSResizeEvent>(window.last_lazy_resize_rect(), window.rect()));
|
||||
}
|
||||
}
|
||||
WSWindowManager::the().invalidate(window, request.rect());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue