mirror of
https://github.com/RGBCube/serenity
synced 2025-05-17 21:05:07 +00:00
WindowServer: Clip dirty cursor rects to the screen in compose().
This commit is contained in:
parent
8f38c01600
commit
02b523f9cd
1 changed files with 2 additions and 2 deletions
|
@ -874,8 +874,8 @@ void WSWindowManager::process_mouse_event(const WSMouseEvent& event, WSWindow*&
|
|||
void WSWindowManager::compose()
|
||||
{
|
||||
auto dirty_rects = move(m_dirty_rects);
|
||||
dirty_rects.add(m_last_cursor_rect);
|
||||
dirty_rects.add(current_cursor_rect());
|
||||
dirty_rects.add(Rect::intersection(m_last_cursor_rect, m_screen_rect));
|
||||
dirty_rects.add(Rect::intersection(current_cursor_rect(), m_screen_rect));
|
||||
#ifdef DEBUG_COUNTERS
|
||||
dbgprintf("[WM] compose #%u (%u rects)\n", ++m_compose_count, dirty_rects.rects().size());
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue