mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 04:37:55 +00:00
WindowServer: Rename the two painting phases.
Work now happens in terms of two messages:
- WM_ClientWantsToPaint
- WM_ClientFinishedPaint
This feels fairly obvious compared to the old Paint/Invalidate.
This commit is contained in:
@@ -401,7 +401,7 @@ void WSWindowManager::on_message(WSMessage& message)
|
||||
return;
|
||||
}
|
||||
|
||||
if (message.type() == WSMessage::WM_Compose) {
|
||||
if (message.type() == WSMessage::WM_DeferredCompose) {
|
||||
m_pending_compose_event = false;
|
||||
compose();
|
||||
return;
|
||||
@@ -454,7 +454,7 @@ void WSWindowManager::invalidate(const Rect& a_rect)
|
||||
|
||||
if (!m_pending_compose_event) {
|
||||
ASSERT_INTERRUPTS_ENABLED();
|
||||
WSMessageLoop::the().post_message(this, make<WSMessage>(WSMessage::WM_Compose));
|
||||
WSMessageLoop::the().post_message(this, make<WSMessage>(WSMessage::WM_DeferredCompose));
|
||||
m_pending_compose_event = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user