mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 00:57:36 +00:00
WindowServer: Always clip window updates to the window's outer rect.
This commit is contained in:
parent
e009be5973
commit
684c52941d
1 changed files with 2 additions and 0 deletions
|
@ -875,6 +875,8 @@ void WSWindowManager::compose()
|
||||||
return;
|
return;
|
||||||
if (!any_dirty_rect_intersects_window(window))
|
if (!any_dirty_rect_intersects_window(window))
|
||||||
return;
|
return;
|
||||||
|
PainterStateSaver saver(*m_back_painter);
|
||||||
|
m_back_painter->set_clip_rect(outer_window_rect(window));
|
||||||
for (auto& dirty_rect : dirty_rects.rects()) {
|
for (auto& dirty_rect : dirty_rects.rects()) {
|
||||||
PainterStateSaver saver(*m_back_painter);
|
PainterStateSaver saver(*m_back_painter);
|
||||||
m_back_painter->set_clip_rect(dirty_rect);
|
m_back_painter->set_clip_rect(dirty_rect);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue