mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-07 00:29:15 +00:00
WindowServer: Don't invalidate already frontmost window for moving to front.
This commit is contained in:
parent
e115ae5641
commit
786b903d62
Notes:
sideshowbarker
2024-07-19 15:59:35 +09:00
Author: https://github.com/awesomekling
Commit: 786b903d62
5 changed files with 18 additions and 8 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue