1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:48:10 +00:00

WindowServer: Don't invalidate already frontmost window for moving to front.

This commit is contained in:
Andreas Kling 2019-01-21 02:18:16 +01:00
parent e115ae5641
commit 786b903d62
5 changed files with 18 additions and 8 deletions

View file

@ -193,9 +193,10 @@ void WSWindowManager::add_window(WSWindow& window)
void WSWindowManager::move_to_front(WSWindow& window)
{
LOCKER(m_lock);
if (m_windows_in_order.tail() != &window)
invalidate(window);
m_windows_in_order.remove(&window);
m_windows_in_order.append(&window);
invalidate(window);
}
void WSWindowManager::remove_window(WSWindow& window)