WindowServer: Always clip window updates to the window's outer rect.

This commit is contained in:
Andreas Kling 2019-03-09 17:03:08 +01:00
parent e009be5973
commit 684c52941d
Notes: sideshowbarker 2024-07-19 15:06:27 +09:00

View file

@ -875,6 +875,8 @@ void WSWindowManager::compose()
return;
if (!any_dirty_rect_intersects_window(window))
return;
PainterStateSaver saver(*m_back_painter);
m_back_painter->set_clip_rect(outer_window_rect(window));
for (auto& dirty_rect : dirty_rects.rects()) {
PainterStateSaver saver(*m_back_painter);
m_back_painter->set_clip_rect(dirty_rect);