1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 03:08:13 +00:00

WindowServer: Make window switcher look more like other overlays

Render the window switcher with the same background and shadow as other
WindowServer overlays.

Note that we don't actually render it as a WindowServer::Overlay, as the
window switcher uses mouse and keyboard events, and there's currently
no way for an overlay to receive events.
This commit is contained in:
Andreas Kling 2021-11-14 12:20:18 +01:00
parent 7fb2540ffe
commit 7e5b22333e
3 changed files with 29 additions and 16 deletions

View file

@ -178,6 +178,8 @@ MultiScaleBitmaps const* WindowFrame::shadow_bitmap() const
return s_taskbar_shadow;
case WindowType::AppletArea:
return nullptr;
case WindowType::WindowSwitcher:
return nullptr;
default:
if (auto* highlight_window = WindowManager::the().highlight_window())
return highlight_window == &m_window ? s_active_window_shadow : s_inactive_window_shadow;