mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-22 12:35:14 +00:00
WSWindowManager: Add an invalidation and a FIXME.
This commit is contained in:
parent
d4cce87dbc
commit
1586bc99e3
Notes:
sideshowbarker
2024-07-19 15:59:50 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/1586bc99e38
1 changed files with 2 additions and 0 deletions
|
@ -195,6 +195,7 @@ void WSWindowManager::move_to_front(WSWindow& window)
|
|||
LOCKER(m_lock);
|
||||
m_windows_in_order.remove(&window);
|
||||
m_windows_in_order.append(&window);
|
||||
invalidate(window);
|
||||
}
|
||||
|
||||
void WSWindowManager::remove_window(WSWindow& window)
|
||||
|
@ -445,6 +446,7 @@ void WSWindowManager::invalidate(const WSWindow& window, const Rect& rect)
|
|||
auto outer_rect = outer_window_rect(window.rect());
|
||||
auto inner_rect = rect;
|
||||
inner_rect.move_by(window.position());
|
||||
// FIXME: This seems slightly wrong; the inner rect shouldn't intersect the border part of the outer rect.
|
||||
inner_rect.intersect(outer_rect);
|
||||
invalidate(inner_rect);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue