1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 06: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:
Tom 2021-03-02 21:11:46 -07:00 committed by Andreas Kling
parent c57d719d62
commit 87c1b1a25d

View file

@ -217,6 +217,8 @@ Gfx::Bitmap* WindowFrame::window_shadow() const
case WindowType::Taskbar: case WindowType::Taskbar:
return s_task_bar_shadow; return s_task_bar_shadow;
default: 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; return m_window.is_active() ? s_active_window_shadow : s_inactive_window_shadow;
} }
} }