mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 15:32:31 +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:
parent
244d5bcce1
commit
9fa8d4e22f
Notes:
sideshowbarker
2024-07-19 15:56:31 +09:00
Author: https://github.com/awesomekling
Commit: 9fa8d4e22f
6 changed files with 39 additions and 39 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue