From 4e9bcd3092190439f1c4aac170f0911a237ab4ed Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 12 Jan 2019 21:01:52 +0100 Subject: Draw the cursor *after* flushing all dirty rects. --- Widgets/WindowManager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Widgets/WindowManager.cpp') 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(); } -- cgit v1.2.3