mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:27:45 +00:00
WindowServer: Use active shadow for highlighted window
If we're switching through windows we should also use the active shadow for the highlighted window.
This commit is contained in:
parent
c57d719d62
commit
87c1b1a25d
1 changed files with 2 additions and 0 deletions
|
@ -217,6 +217,8 @@ Gfx::Bitmap* WindowFrame::window_shadow() const
|
|||
case WindowType::Taskbar:
|
||||
return s_task_bar_shadow;
|
||||
default:
|
||||
if (auto* highlight_window = WindowManager::the().highlight_window())
|
||||
return highlight_window == &m_window ? s_active_window_shadow : s_inactive_window_shadow;
|
||||
return m_window.is_active() ? s_active_window_shadow : s_inactive_window_shadow;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue