diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-01-26 05:45:47 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-01-26 05:45:47 +0100 |
commit | 9fa8d4e22f6eae09c2828dce4dde5340e8a76c7b (patch) | |
tree | cb253e8314e7b17ba4b45285b181f4d26a44148a /WindowServer/WSWindowManager.cpp | |
parent | 244d5bcce1b0c1b6926dd74e61ae50934171bd4f (diff) | |
download | serenity-9fa8d4e22f6eae09c2828dce4dde5340e8a76c7b.zip |
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.
Diffstat (limited to 'WindowServer/WSWindowManager.cpp')
-rw-r--r-- | WindowServer/WSWindowManager.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/WindowServer/WSWindowManager.cpp b/WindowServer/WSWindowManager.cpp index 0b25730e0a..bd9a69236e 100644 --- a/WindowServer/WSWindowManager.cpp +++ b/WindowServer/WSWindowManager.cpp @@ -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; } } |