summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-12 21:01:52 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-12 21:02:08 +0100
commit4e9bcd3092190439f1c4aac170f0911a237ab4ed (patch)
treee0d1c750ee664d286a6627114d2d995152145f25
parentdefd899b3868f7c0ad699e46fa8eb4585a33aeff (diff)
downloadserenity-4e9bcd3092190439f1c4aac170f0911a237ab4ed.zip
Draw the cursor *after* flushing all dirty rects.
-rw-r--r--Widgets/WindowManager.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/Widgets/WindowManager.cpp b/Widgets/WindowManager.cpp
index e8f866044c..41785387fa 100644
--- a/Widgets/WindowManager.cpp
+++ b/Widgets/WindowManager.cpp
@@ -250,10 +250,9 @@ void WindowManager::compose()
paintWindowFrame(*window);
painter.blit(window->position(), *window->backing());
}
- redraw_cursor();
- for (auto& r : m_invalidated_rects) {
+ for (auto& r : m_invalidated_rects)
flush(r);
- }
+ redraw_cursor();
m_invalidated_rects.clear_with_capacity();
}